Why do I receive an error about a SWITCH expression when using ODE15S within MATLAB?
显示 更早的评论
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!