Skip to content
Permalink
2d422ccdc4
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
Latest commit 50f1160 Mar 30, 2017 History
1 contributor

Users who have contributed to this file

31 lines (26 sloc) 421 Bytes
N= [5,6,10]-1;
%Given constant values
E=76e9;
I=4e-9;
L=5;
%For loop that creates:
%1 - the lambda values
%2 - number of segments
%3 - number of eignvalues
i=1;
for m=N
Dx=L/m;
p=10/(E*I);
a=Dx^2*p^2-2;
m=diag(ones(1,m-1),-1)+diag(a*ones(1,m))+ diag(ones(1,m-1),1)
e=eig(m);
i;
maxLam(i)= max(e);
minLam(i)=min(e);
i=i+1;
end
maxLam'
minLam'
N'
nodes = N+1;
nodes'