Permalink
Cannot retrieve contributors at this time
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?
me3255_group5/shape_simple_support_plot.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17 lines (15 sloc)
443 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%The objective of this code is to plot the load distributed on the beam | |
%versus the maximum deflection | |
max_load=100; | |
q=[1:max_load]; | |
w=zeros(1,100); | |
x=0.5; %Location where max deflection occurs | |
for n=1:max_load | |
w(n) = shape_simple_support(x,n); | |
end | |
%Plot load vs max deflection | |
plot(q,w) | |
setdefaults | |
xlabel('Applied Load (N/m)') %x-axis label | |
ylabel('Max Deflection (m)') %y-axis label | |
title('Applied Load versus Maximum Deflection') |