Project

second order ODE

clear all

close all

clc

b=0.5;

L= 1;

m=1;

g=9.8;

%initial condition

theta_θ = [0;3];

%time plots

t_span= linspace(0,20,500);

%solve ODE

[t,results]= ode 45 (@(t,theta)ode_func(t,theta,b,l,m,g),t_span,theta_θ);

plot(t,results (:,1))

hold on

plot (t,result (:,2))

ylabel(\'theta\')

xlabel(\'time\')

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.