Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
48 lines (45 sloc) 1.24 KB
N = [6,10,20];
q = [1,10,20,30,50];
P = [0,100,200,300];
for n = [1:4]
for m =[1:5]
data_6(n,m) = max(CDM(q(m),6,P(n)));
end
end
subplot(1,3,1)
plot(q,data_6(1,:),q,data_6(2,:),q,data_6(3,:),q,data_6(4,:));
%Plotting q vs. x_distance_vector
ylabel('Deflection (meters)')
%sets proper bounds for x axis
xlabel('Applied Load q (N/m)')
%set Proper bounds for y axis
title('Deflection vs. Applied Load q (6 Segments)')
%Title of the graph.
for n = [1:4]
for m =[1:5]
data_10(n,m) = max(CDM(q(m),10,P(n)));
end
end
subplot(1,3,2)
plot(q,data_10(1,:),q,data_10(2,:),q,data_10(3,:),q,data_10(4,:));
%Plotting q vs. x_distance_vector
ylabel('Deflection (meters)')
%sets proper bounds for x axis
xlabel('Applied Load q (N/m)')
%set Proper bounds for y axis
title('Deflection vs. Applied Load q (10 Segments)')
%Title of the graph.
for n = [1:4]
for m =[1:5]
data_12(n,m) = max(CDM(q(m),12,P(n)));
end
end
subplot(1,3,3)
plot(q,data_12(1,:),q,data_12(2,:),q,data_12(3,:),q,data_12(4,:));
%Plotting q vs. x_distance_vector
ylabel('Deflection (meters)')
%sets proper bounds for x axis
xlabel('Applied Load q (N/m)')
%set Proper bounds for y axis
title('Deflection vs. Applied Load q (12 Segments)')
%Title of the graph.
You can’t perform that action at this time.