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!