Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
18 lines (16 sloc) 364 Bytes
%Initialize Constants
E = 70*10^9; %Pa
dens = 2700; %kg/m^3
b = 0.1; %m
h = 0.01; %m
l = 1; %m
%Derived variables
I = (b*(h^3))/12; % m^4
area = b*h; %m^2
[x,w] = ode45(@defl,[0 1],[0;0;0;0]);
plot(x,w(:,1),'-o',x,w(:,2),'-o')
title('Depiction of Beam Deflection with ODE45');
xlabel('Position x (m)');
ylim([-0.001 0.001])
xlim([0 1])
ylabel('Deflection (m)');
You can’t perform that action at this time.