RK4 error for the code

7 Ansichten (letzte 30 Tage)
deep
deep am 23 Mär. 2015
Kommentiert: deep am 1 Apr. 2015
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);

Akzeptierte Antwort

Titus Edelhofer
Titus Edelhofer am 23 Mär. 2015
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 Kommentar
deep
deep am 1 Apr. 2015
Thank you Problem resolved :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by