Ode45 out matrix dimension error!!

1 回表示 (過去 30 日間)
Mo BO
Mo BO 2016 年 5 月 18 日
コメント済み: Mo BO 2016 年 5 月 18 日
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

採用された回答

Walter Roberson
Walter Roberson 2016 年 5 月 18 日
Please show your call to ode45.
I suspect you used
[s, t] = ode45(.....)
instead of
[t, s] = ode45(.....)
  1 件のコメント
Mo BO
Mo BO 2016 年 5 月 18 日
thank you ,it worked well

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by