Matrix dimensions must agree.
1 回表示 (過去 30 日間)
古いコメントを表示
hi, I am getting this error in my code. can anybody help me with this. Thank you in advance.
採用された回答
Stephen23
2016 年 4 月 15 日
編集済み: Stephen23
2016 年 4 月 15 日
/
./
And read this to know the difference:
because you will fix that line and get exactly the same error on the following lines. When you understand the difference between matrix and array operations then you can solve this yourself.
3 件のコメント
Stephen23
2016 年 4 月 15 日
編集済み: Stephen23
2016 年 4 月 15 日
The Runge-Kutta method looks okay, except that you are missing the for operator. You should use [your favorite internet search engine] to find examples of Runge-Kutta implementation using MATLAB (there are lots of them). Then you can compare your work, and decide if it is okay.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!