Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
23 lines (19 sloc) 672 Bytes
function PlotSSS(maxLoad)
%Generates deflections based on all values of distributed load from 1 to
%inputted value maxLoad, plots output of deflection against load
%Given physical parameters
q = [1:maxLoad]; %initialize array of loads for plotting
w = zeros(1,maxLoad); %initialize array of deflections for plotting
x = 0.5; %location of maximum deflection (constant for all q)
%Iterate function for all values of q
for n = 1:maxLoad
%Place max deflections in an array w
w(n) = -shape_simple_support(x,n);
end
%Plotting routine
plot(q,w)
setdefaults
xlabel('Applied Load (N/m)')
ylabel('Max Deflection (m)')
title('Applied Load versus Maximum Deflection')
end
You can’t perform that action at this time.