Error using odearguments (line 93) must return a column vector

15 次查看(过去 30 天)
Why does it have to return a column vector?
How can I fix this?

回答(1 个)

Stephan
Stephan 2020-11-28
编辑:Stephan 2020-11-28
Add this line in your ode function at the last line:
NameOfYourOutputVariable = NameOfYourOutputVariable(:);
This should fix the error.

类别

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