Plotting system of differential equations in MATLAB

3 views (last 30 days)
I'm not really good at using MATLAB. I have this system:
I'm trying to answer this question:
I would appreciate some assistance on using MATLAB to input these equations. I'm using MATLAB 2013a on Mac OS X 10.9.3

Accepted Answer

Star Strider
Star Strider on 3 Jun 2014
You should be able to access the documentation for all the MATLAB functions available on your computer through the ‘Help’ button above the Command Window. If you want to access the documentation for ode45 online, click on that hyperlink to it.
It will be worth asking about the meaning of ‘trajectory’. If you simply want to plot the three solved variables against each other when you get your ODE function working with ode45, then the plot3 function will work. If you need to do a phase-plane plot, then things get interesting. You have to take your solved variables and time vector and plug them back into your ODE function to get the derivatives. The plot3 function works here as well.

More Answers (1)

Titus Edelhofer
Titus Edelhofer on 3 Jun 2014
Hi,
if you want to solve numerically, then
doc ode45
should be a good starting point ...
Titus

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!