that's what i have done on Matlab, but I can't get the right graph for the question.
first I created a function :
function [y]=discontinuity(x,a,n,c)s=length(a);y=zeros(s,1);for i=1:sif x(i)>=ay(i)=((x(i)-a)^n)/c;elsey(i)=0;endendend
Then, I created a script
x=0:0.5:360;y=zeros(length(x),1);for i=1:length(x) y(i)= -((100/24)*x(i))^4+(8500/6)*x(i)^3-27.30e6*x(i)+(100/24)*discontinuity(x(i),120,4,29e6*110)-(2000/6)*discontinuity(x(i),180,3,29e6*110)+(9500/6)*discontinuity(x(i),240,3,29e6*110)-(4000/6)*discontinuity(x(i),300,3,29e6*110);endplot(x,y)grid onxlabel('distance in inches')ylabel('deflection in inches')
Best Answer