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

Solving Second Order Differential Equations in Matlab

Loading...

Sign in or sign up now!
99,520
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 6, 2008

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 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, 8 dislikes

Link to this comment:

Share to:

Uploader Comments (jakeblanchard)

  • How can define " a function that defines the functions derived on previous slide (the first deivatives of Z and Y)". i think it is not shown here and that is my problem.

  • @alpha001ful

    It is easiest if you send me a script I can debug. Send it to blanchard "at" engr.wisc.edu

    Alternatively, download a sample script from

    blanchard "dot" ep "dot" wisc "dot" edu/PublicMatlab/#IVP

  • I've been using your videos, thanks!. But, I think 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). Can anyone help, I really need it!

  • @tomtomtramp

    You can email me at blanchard "at" engr.wisc.edu

Top Comments

  • Thanks for this, I couldn't figure out why my code wasn't working...everything looked good. Then I realized I forgot to define g. Dang I want those two hours of my life back! Lol

see all

All Comments (80)

Sign In or Sign Up now to post a comment!
  • thanks! I am a professor here at Oregon State. I am going to take this to the classroom!

  • Thanks you very much dude¡¡¡¡¡¡, Greetings from Chile

  • I tried to do the same simulation for a simple pendulum. Instead of y there , i had angle or variable called theta. Whenever i tried to run, Matlab always said "??? Input argument "theta" is undefined."........i have done exactly the same as here...

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