For the beam and loading shown the equation for deformation

For the beam and loading shown, the equation for deformation through the length of the beam can be expressed as 360EIL Mex w = 150 lb/in, L = 160 in, I-723 in and E = 30e6. Write a MATLAB script based on switch statement (switch program; use program-1 for (a) and program 2 for (b) to determine and plot deformation through the length of the beam for a length increment of 5-in. (a) Use vector form of X=F:I:L (b) Use for loop to generate result in a column matrix Develop a script to generate results for position and deformation in a column matrix and plot X Vs Y.

Solution

x=linspace(1,160,160);

y=150/(360*30*10^6*723*160)*(-3*x.^5 +10*1602*x.^3 -7*160^4*x.);

plot(x,y)

xlabel( \'distence in inch\')

ylabel(\' deflection in inch\')

Case 2

For x=1:160

y=150/(360*30*10^6*723*160)*(-3*x.^5 +10*1602*x.^3 -7*160^4*x.);

C(i)=i;

D(i)= y;

end

M=[C,D]

plot (C,D)

xlabel( \'distence in inch\')

ylabel(\' deflection in inch\')

 For the beam and loading shown, the equation for deformation through the length of the beam can be expressed as 360EIL Mex w = 150 lb/in, L = 160 in, I-723 in

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site