Please help. I dont know where to start. Step by step intructions please, I\'m n
ID: 3844600 • Letter: P
Question
Please help. I dont know where to start. Step by step intructions please, I'm not familiar with matlab at all.
Visualize the force-defiection data, which can be used to calculate the energy absorbed by each design The force exerted by the rigid wall on the bumperand the defection of the bumper are of interest here. The nonlinear dynamic finite element model predicts a force-defection response that has many short wavelength variations (ie, itis noisy), due to the numerical approximations used. But the nominal response is reasonably accurate. Foreach of the nine designs, piotafonce-defecton curve (an example is shown below). A force-deflection curve should be plotted for each of the nine design points As seen in the example, the deflections should be on the horizontal axis and the forces on the vertical axis. Foro Dutection Design Figure 1: Example of a Force-Deflection Curve There may be points when the force is less than 0. These are not ofinterest and can be removed. Since we have not covered this yet (discussion is in Unit 3), the code to do so has been provided below. Use: You will need to rename d and f according to whatever you have decided to name them (EX: Variables might be Def1 and F1, Def2 and F2, etc.) This should be done for alofthe forces and deflections you loaded before plotting What MATLAB is doing is locating where forces are less than or equal to 0 and removing these data points. Deliverables: Create ascript m file named Lastname FirstName ProjectP2.m. This script should 1. Eliminate the points for each design where force is less than 0 2. Plot the force vs. deflection curves for all9 designs in a single 3x3 subplotExplanation / Answer
As per my understanding you should start with this program and once you run this you will get the desired results:-
> > X=randn(10,10); %a matrix of random numbers some of course negative
> > indices=find(X<0); %find the elements of X, which are negative
> > X(indices)=0; %set all the elements of x which are negative to zero.
> >
> > Now you will see that
> >
> > >>find(X<0)
> > ans =
> >
> > Empty matrix: 0-by-1
> >
M = ceil(10*rand(5))-5
M = min(max(M,-1) ,3) % clip between -1 and 3