Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can I increase the output vector of a loop from a 7 x 7 double to a 31 x 7 double?

1 回表示 (過去 30 日間)
Dursman Mchabe
Dursman Mchabe 2018 年 10 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi everyone, I would like to use a for loop (employing Euler method) to solve ODEs and algebraic equations. However, loop only generate a vector of 7 x 7 double, and I am expecting a 31 x 7 double vector. Also, when I plot t-vector vs y-vector, I get an error message:
Error using plot
Vectors must be the same length.
Error in EulerMethod (line 62)
plot(t,y)
For the details, I have attached the m-file (EulerMethod.m). I have also attached the functions/files that it calls, namely Hion.m, C_Bulk.m, odes.m and Parameters.m.
I thank you.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by