RK4 error for the code

6 visualizaciones (últimos 30 días)
deep
deep el 23 de Mzo. de 2015
Comentada: deep el 1 de Abr. de 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);

Respuesta aceptada

Titus Edelhofer
Titus Edelhofer el 23 de Mzo. de 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 comentario
deep
deep el 1 de Abr. de 2015
Thank you Problem resolved :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by