Why do I receive an error about a SWITCH expression when using ODE15S within MATLAB?
Show older comments
When solving a differential-algebraic system (DAE) via the command:
options = odeset('Mass', rand(3));
[t,z] = ode15s('odefun', TSPAN, X0, options);
where odefun is the derivative function, I receive the following error:
??? SWITCH expression must be a scalar or string constant.
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!