Ode45 out matrix dimension error!!
1 回表示 (過去 30 日間)
古いコメントを表示
function [ dot ] = Untitled2( t,var )
dot=[var(1); var(2)*9.81*-1/0.2];
end
The output from workspace
instead of 45*2 and t 45*1
0 件のコメント
採用された回答
Walter Roberson
2016 年 5 月 18 日
Please show your call to ode45.
I suspect you used
[s, t] = ode45(.....)
instead of
[t, s] = ode45(.....)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!