is there something wrong with my program?

조회 수: 3 (최근 30일)
Joe Koning
Joe Koning 2013년 4월 26일
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?

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 26일
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.
  댓글 수: 2
Joe Koning
Joe Koning 2013년 4월 26일
how would i specify this options parameter?
Walter Roberson
Walter Roberson 2013년 4월 26일
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, http://www.mathworks.com/help/matlab/ref/odeset.html#f92-1016858. 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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by