MATLAB Answers

Joe Koning

is there something wrong with my program?

Asked by Joe Koning
on 26 Apr 2013

Im solving a ODE equation with ode15s in in space, voltage and time, with 801 nodes. How long should i expect matlab to take to solve this? Because at the moment it has been upwards of 20 minutes?



No products are associated with this question.

1 Answer

Answer by Walter Roberson
on 26 Apr 2013
 Accepted answer

Could be hours. You might want to interrupt it and recode slightly with an options parameter that requests plotting as it goes so that you can see the progress.


how would i specify this options parameter?

notice the calling forms that have "options" as a parameter, and note "You can create options using the odeset function". Over at odeset, you want the "Solver Output Options" section, You probably want 'OutputFcn', and you might want to use @odeplot as your choice. You might want to specify 'OutputSel' to be selective about what you plot.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!