Solving Second Order Differential Equations in Matlab
Loading...
99,520
Uploader Comments (jakeblanchard)
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)
-
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...
Loading...
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 4 months ago
@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
jakeblanchard 4 months ago
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)]-theta(t))+u''/g*cos(alpha*sgn[theta(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 9 months ago 3
@tomtomtramp
You can email me at blanchard "at" engr.wisc.edu
jakeblanchard 9 months ago