Plotting more solutions with odephas2
Show older comments
I have 6 differential equations which i solve with ode45. To plot the solutions while solving, I use odephas2, which works fine. However I don't seem to be able to plot all the solutions while solving in one figure.
my code:
y0=[-2 0 0 0 2 0]
options = odeset('OutputFcn', @odephas2','OutputSel',[1 2]);
[T,Y] = ode45(@vortex,[0 100],y0,options);
So I would like to not only plot solutions [1 2] but also [3 4] and [5 6] in the same figure at the same time.
Answers (0)
Categories
Find more on Calculus 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!