Change Player Size
Watch this video in a new window

Solving Second Order Differential Equations in Matlab

This video describes how to solve second order initial value problems in Matlab, using the ode45 routine. A full res version can be found at http://blanchard.ep.wisc.edu These videos were recorded...  
 
Customize

More From: jakeblanchard

Loading...

Playlist(57)

4:56
6:55
7:35
9:40
8:56
8:58
4:07
7:23
9:58
5:07
7:16
9:15
9:37
1:23
0:12
0:23
0:22
0:39
0:58
0:28

QuickList(0)

22 ratings
Sign in to rate
25,610 views
Want to add to Favorites? Sign In or Sign Up now!
Want to add to Playlists? Sign In or Sign Up now!
Want to flag a video? Sign In or Sign Up now!

Statistics & Data

Loading...

Video Responses (0)

This video has no Responses. Be the first to Post a Video Response.
Sign in to post a Comment

Text Comments (23)   Options

Loading...
WorldEditna (1 month ago) Show Hide
 0
Marked as spam
hi again. im really lost now with my differential equation (d2i/dt2)=(sin(w*t)/(L*C*Rs))- (di/dt)/(L*Rs)-i/(L*C).
i need to solve it with Eulers method and i dont understand what should i enter to matlab to solve.
jakeblanchard (1 month ago) Show Hide
Marked as spam
First you break the second order equation into two first order equations. Then you put together an Euler method for the system. Wikipedia has some info on this.
kksenduran (1 month ago) Show Hide
 0
Marked as spam
jhj
samarpan88 (1 month ago) Show Hide
 0
Marked as spam
I tried to follow the instructions given here but i m getting the following error-
Strings passed to EVAL cannot contain function declarations.
Is this bcoz. i m using a old version(3.6.5)?
Plz help
jakeblanchard (1 month ago) Show Hide
Marked as spam
It could be a version problem. Old versions of Matlab didn't use @f. Try using 'f' instead of @f. That is, try single quotes around the f, like this

[t,y]=ode45('f',[0 15], [600,0]);
zoro19840 (1 month ago) Show Hide
 0
Marked as spam
Simulink for kids !!!
zoro19840 (1 month ago) Show Hide
 0
Marked as spam
I treied it, it doesnt work ,

how you run this ?
you create 2 .m files ? where you saved them what ar ethe names ?

coul you please answer
jakeblanchard (1 month ago) Show Hide
Marked as spam
Put these commands into a file called f.m

function rk=f(t,y)
rk=[y(2); -9.81+4/14*y(2).^2/80];

Then type these into the command window

[t,y]=ode45(@f,[0 15], [600,0]);
plot(t,y(:,1))
zoro19840 (1 month ago) Show Hide
 0
Marked as spam
Thank you very much !!
Now it works,

I need another favor please:
how to solve : m(d^2/dt^2)+c(dx/dt)+kx=u(t);
with initial conditions: x(0)=1, (dx/dt)(0)=2; and u(t) is input = sin(2*pi*t)
jakeblanchard (1 month ago) Show Hide
Marked as spam
Take a look at this site:

blanchard "dot" ep "dot" wisc "dot" edu/PublicMatlab/index.html#IV P

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.