Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
%Problem 2a-d
clear;
clc;
%iterates through each number of segments and applied load to fin three
%vectors of values of deflection for each load
N = [6,10,20];
q = [1,10,20,30,50];
data = zeros(3,5);
for n = [1:3]
for m =[1:5]
data(n,m) = max(CDM(q(m),N(n),0));
end
end
%Plotting routine for Part 2
plot(q,data(1,:),q,data(2,:),q,data(3,:));
ylabel('Deflection (meters)')
xlabel('Applied Load q (N/m)')
title('Deflection vs. Applied Load q')