Why does ode15s open a new windows command window for each iteration?
1 view (last 30 days)
Show older comments
Hi
I'm trying to solve a DAE system using ode15s. The system contains 6 differential and 10 algebraic residual equations. I know that my initial values are close to the correct values. But when I try to run my script, MATLAB opens a new windows command window for each iteration (C:\Windows\sys32\cmd.exe). The only thing displayed in the command window is my current path (in this case M:\Documents\MATLAB\) The iteration is painfully slow. How can I solve this problem?
Thanks in advance
EDIT: The same problem occurs when trying to solve the system at steady state, i.e. when using fsolve to solve g(x) = 0. So my guess is that the problem is related to solving the implicit algebraic equations.
0 Comments
Accepted Answer
Sean de Wolski
on 30 Sep 2014
Ha! I was very worried when I first ran this.
Stepping through it, if you look at the end of line 230.
CPI2 = C1 + C2*TB*(C3 + C4*TB*(C5 + C6*TB));!
You have an exclamation point which is the operator that calls the command window. Simply remove this and you're all set.
More Answers (0)
See Also
Categories
Find more on Ordinary Differential Equations 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!