Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Solve Ordinary Differential Equations in Matlab

Loading...

Sign in or sign up now!
73,854
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 24, 2008

Here I describe how to solve a first order ordinary differential equation in Matlab using the ode45 routine. A high res version can be found at blanchard.ep.wisc.edu These videos were recorded for a course I teach as part of a distance masters degree. See http://mepp.engr.wisc.edu

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 12 dislikes

Link to this comment:

Share to:

Uploader Comments (jakeblanchard)

  • the units aren't right... it's one thing to say it won't model reality and another to write an equation that doesn't make sense mathematically either.

  • @ReturnOfTheMack7

    The units are fine. Of course, some of the numbers (like 4/15) are not dimensionless.

  • sir even if iam using the exact equation and coding as shown in this video it says input argument ' y ' is undefined . im new to this can u help me sir

  • @jillukevin

    I would suggest you go to the link below and download the scripts. They should work for you. Sorry for the strange typing, but I've never figured out how to get a good link into a YouTube comment. I guess they are afraid of Spam, so they forbid the posting of links.

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

  • is it possible for me to download this movie? how should I go about this

  • @ukoba

    I don't know of any way to do this directly. When I want to "download" a flash video, I use a screen capture utility. Lately I've been using TipCam, but there are others, including some web-based tools. Let me know if you need details.

Top Comments

  • Perfect explanation, helped me solve a nasty ODE for a Heat Transfer final project. Life saver!

  • good explanation. Thanks

see all

All Comments (54)

Sign In or Sign Up now to post a comment!
  • @jakeblanchard a number does not have units... no one should assume you have 'hidden' the correct units behind the fraction. you should leave it as a variable and explain the number and units [kg/m] as you do with m and g.

  • let`s say the function has consists of time being squared. so the dy/dt function has a t in it. would ode 45 still work?

  • Thanks for the vids! But I'm writing the wrong code. I am developing a system to analysis the rocking motion of a block subjected to an earthquake excitation. The state vector is y(t)={theta(t) , theta'(t)}. and the Time-derivative vector f(t) is y'(t)= {theta'(t) , p^2(sin(alpha*sgn[theta(t)]-th­eta(t))+u''/g*cos(alpha*sgn[th­eta(t)]-theta(t))]}. I have the values for p, alpha, u'' and g. But I need theta(t), and theta'(t). theta(t) is the rotation angle to time, t. Please help, I need it!

  • Clear and thorough. Thanks so much!

View all Comments »
Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more