diff --git a/Plot4.png b/Plot4.png new file mode 100644 index 0000000..2e7d200 Binary files /dev/null and b/Plot4.png differ diff --git a/defl.m b/defl.m index a73df33..8ab8d82 100644 --- a/defl.m +++ b/defl.m @@ -11,7 +11,7 @@ h = 0.01; %m l = 1; %m %Placeholder frequency -%freq = 150; +freq = 150; %Derived variables I = (b*(h^3))/12; % m^4 diff --git a/solveODE.m b/solveODE.m index 281d617..9da05bc 100644 --- a/solveODE.m +++ b/solveODE.m @@ -9,7 +9,7 @@ l = 1; %m I = (b*(h^3))/12; % m^4 area = b*h; %m^2 -[x,w] = ode45(@defl,[0 1],[0;0.001;0;-0.1]); +[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)');