RK4 error for the code

7 ビュー (過去 30 日間)
deep
deep 2015 年 3 月 23 日
コメント済み: deep 2015 年 4 月 1 日
Hi, I am integrating a differential equation using the code attached in the image.While i am executing my code i am getting the following error message,Can anyone help me with this.
??? Error using ==> feval
Argument must contain a string or function_handle.
Error in ==> rk4 at 21
k1 = h*feval(f,xo,u);

採用された回答

Titus Edelhofer
Titus Edelhofer 2015 年 3 月 23 日
Hi,
the error tells you, that the first argument to call rk4 should be a function that can be called, so either the name as a string (of a .m file), or a function handle.
Titus
  1 件のコメント
deep
deep 2015 年 4 月 1 日
Thank you Problem resolved :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by