MATLAB ode45: How To Solve a System of Ordinary Differential Equations (ODE - with discrete data)

preview_player
Показать описание
#DiffyQ #ODE45 #MATLAB #Mathworks

Engineers!

In this video, I cover a full example of solving a system of two first order ordinary differential equations (ODEs), in MATLAB, using the ODE45 command. I also cover how to use discrete data, interpolation, and passing parameters.

This video covers:

1) Import Excel data into MATLAB (xlsread)
2) Interpolate Discrete data (interp1)
3) Pass parameters between files into an equation. (ode45)
4) Solve an ode using the ode45 command in MATLAB. (ode45)

Thank you for watching!

TAGS:
How to solve a system of ODE in MATLAB?
How to pass parameters within an ODE in MATLAB?
How to solve an ODE with discrete data?

About: My name is Vin and I am the creator of VDEngineering. I am 23 years old and I graduated with my Bachelor's Degree in Mechanical Engineering from Canada. I now work in an aerospace firm supporting major programs for Bombardier. My hobbies include doing cool simulations, making engineering tutorial videos, video editing, photography, working out (calisthenics) and drone piloting. My goal of this channel is to spread my passion for Aerospace Engineering worldwide and to inspire more students and young teens to pursue this as a career.

~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
Рекомендации по теме
Комментарии
Автор

6 years after posting this and you saved my LIFE on my final lab for my mechatronics class, thank god man! you are the BEST

DEFIB
Автор

Top class work, well done and thank you.

Mtmonaghan
Автор

you have no idea how much you've helped me, thank you so so much. Extremely well done video

liamgerritsen
Автор

Well done! useful, and I understood it! Very much appreciated.

Bu.T.F.I
Автор

Thank you so much for this! It's very well explained :)

funnysele
Автор

Thank you. You can also define constants as global variables (no need to pass it as an argument)

josipsacher
Автор

Hi again VDE, could you tell me if there is any way of setting a minimum "ground" value for y(2), such as 0? If there is no minimum value and the initial force values are less than the ones of gravity, it means that the rocket would go down instead of simply not taking off.

felipebm
Автор

great video thanks for posting. covers many topics that are encountered.

frederickajustagosto
Автор

Many many many thanks you helped me alot... again thanks to you.

susramu
Автор

Good night, I have a doubt. If the FT were dependent on y (1), in this case, the displacement, what should change and how to change?

joseanchieta
Автор

Was this solved numerically? I'm asking becauseyour using quadratic drag in your equation 
which gives V^2=Vx^2+Vy^2 and will lead to a coupled system of non-linear differential equations.

freddycaban
Автор

hello sir,
My name is ajinkya dalvi, I have acceleration data in excel format and i want to convert that data into time displacement data and use to solve a ODE. so can you please guide me in that.

ajinkyadalvi
Автор

Please discuss a problem using keller box method with MATLAB code

madhuryahazarika
Автор

Can this code to solve five equation coupled nonlinear ??

tarekmahmoudkhalifa
Автор

Hey VDE, how can I define a time value as a parameter and find the y value at that time? Thanks for the video, very nice

felipebm
Автор

do we have any built in tool in matlab, simulink, simscape or any thing where I can build my own propeller and simulate it.

sudhansumtripathy
Автор

If thrust and density weren't constant but rather functions of altitude, how would I implement that?

chenzofunari
Автор

Great video, but how to solve a higher order system of ODEs?

ThomasHaberkorn
Автор

Sir I am begginred please help me matlab program

nemanipatil
Автор

Hi! Is it possible to have your email to contact you for a doubt on this topic? It is a code that I am doing and it is running for too long. If you could help me I can join Patreon in exchange or alike. I hope you can help me! All the best

mayraalvarez