MATLAB tutorial - Solving Second 2nd Order Differential Equation using ODE45

preview_player
Показать описание

========================
✅ Visit our website

✅ Subscribe for more free YouTube tutorial

🔴 Watch my most recent upload:

🔴 MATLAB tutorial - Machine Learning Clustering

🔴 MATLAB tutorial - Machine Learning Discriminant Analysis

🔴 How to write a research paper in 4 steps with example

🔴 How to choose a research topic:

Рекомендации по теме
Комментарии
Автор

Thanks for your video! It helped me solve a problem that I had been banging my head on for the past 48 hours. Thanks man!

jbbudish
Автор

This is a lifesaver.  Thanks so much for posting this.  I have a test tomorrow over equation solving in matlab, and your tutorial explained it perfectly.

cottonandcalculus
Автор

Thank you for your help! The matlab documentation is not helpful for this subject, but you were able to make it crystal clear. I appreciate you.

gavindundee
Автор

Thank you! You saved me from wasting so much time on a silly mistake.

irenejohnson
Автор

Can we plot the acceleration for this particular problem?

charltoncheng
Автор

I have tried your exmaples, but I got error message like this,

Error using feval
Undefined function 'myode45function' for input arguments of
type 'double'.

Error in odearguments (line 88)
f0 = feval(ode, t0, y0, args{:});   % ODE15I sets args{1} to
yp0.

Error in ode45 (line 114)
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs,
odeFcn, ...

viji
Автор

How does it work? does ode45 automatically update initial conditions after it is first called, during a time span?

qasimmughal
Автор

How do you do this if the known value for ydot is when t=10, this is not initial value

stressedbyamountainofbooks
Автор

hello, Your code worked perfectly, i tried to compare the numerical solution vs the symbolic solution of the ode with the command 'dsolve' and i ploted the resulting function. 
However, the plot obtained is different to the previous y_position plot.. How can you explain this? 
Is it the numerical method very approximated? the ode function doesn't seem very complicated.. 

THANKS :)

(i hope it's not a silly question it's been a while since i took ode's classes)

jclaret
Автор

Why do you use y(2) in myoutput in function code? 
And how did you know you should plot y(:, 1)? 
I'm sorry if it's a stupid question but I'm struggling with MATLAB. 

writingvampires
Автор

if one of the variables in your equation is a varying dependent parameter, how do you solve it?

sharvinbaskaran
Автор

Why the velocity is going below zero in graph?

engrirfanmahmood
Автор

What if the initial conditions were y'(1)=12 and y(0)=21?CAN YOU USE THE ODE 45 THEN?

christosd
Автор

DOES ANYBODY KNOW what would you do if you had the same equation but instead of y'(0)=12 you had y'(1)=12 and y(0)=21 same. How would you code the initial conditions so matlab undertands that first condition(y(0)=21)is for x=0 and second condition which is for the y dot(y'(1)=12) is for x=1????

christosd
Автор

Would you please show me how to plot the y double dot, the acceleration ??? Thanks in advance

KhoaNgo
Автор

How to use MATLAB to first convert the linear differential equation of order 5 to a system of first-order differential equations & then solve for potential solutions using MATLAB
𝑦(5) − 𝑦(4) + 5𝑦(3) + 2𝑦(2) + 𝑦(1) − 3𝑦 = 0

razirehman
Автор

this really saved my ass man. thank you very much.

santiagoguzman
Автор

Is it possible to obtain unit step response in this method?

chinmoybaruah
Автор

I write exactly the same code as you and mine doesnt work...

Jimmy-fytb
Автор

what if the input is not zero like a t*sin(t) ??

vincint