Question: MATLAB problem help. 1. Write a function m-file to plot the beam deflection shown at the beginning of the assignment. Please use grid on, and
MATLAB problem help.



1. Write a function m-file to plot the beam deflection shown at the beginning of the assignment. Please use grid on, and embellish the figure with titles and axis labels as you wish (cf. Section 2.5 of text). Please write the function in silent mode. 4,(x) = - = (x 03* = (x 591 + 5x )2 + 75(x 7y2 + *** 238.5x where the singularity function (x-a)" = (x -a)"; if x > a, and (x-a)" - 0:1fx sa. 2. Write an anonymous function to get the same deflection, and then plot it. You should have a script file that looks something like this: x - y - 1:0.5:10; (x) -5/6* (... your code here... hold on; plot (x,y,'o'); grid on; YP - beamDeflPlot (x); hold off ; function (y)-beamDeflPlot (x) your code here plot (x,y); grid on end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
