clear alll = 25 E = 200*10^9I = 350*10^-6w = 6*10^3x = input('enter length of the beam')if (x>=0)&(x<= l/2), y = -w*x/384*E*I *(16*x^3-24*l*x^2+9*l^3);elseif (x>=l/2)& (x<= l); y = -w*x/384*E*I*(8*x^3-24*l*x^2+(17*l^2)*x-l^3)end
Why I can not get the value of y? How to get it?
Best Answer