Why do I receive an error about a SWITCH expression when using ODE15S within MATLAB?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!