Uploaded by Sonia Sarre

Assignment1-code

advertisement
6/3/19 6:18 PM
C:\Users\sonia\OneDrive\D...\Assignment1.m
1 of 1
clear,clc,close all
x=linspace(0,10);
n=length(x);
uy=zeros(n,1);
for i=1:n
uy(i)=-5/6*(beamDeflPlot(x(i),0,4)-beamDeflPlot(x(i),5,4))+...
15/6*beamDeflPlot(x(i),8,3)+75*beamDeflPlot(x(i),7,2)+57/6*x(i)^3-238.25*x(i);
end
plot(x,uy,'--')
title('Beam Deflection')
xlabel('Position')
ylabel('Deflection')
Download