RK4 error for the code

조회 수: 6 (최근 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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by