Why obtaining an error while displaying Runge kutta code

4 ビュー (過去 30 日間)
Esraa Abdelkhaleq
Esraa Abdelkhaleq 2018 年 10 月 2 日
コメント済み: Esraa Abdelkhaleq 2018 年 10 月 7 日
Hello,
While I run out the code for Runge_Kutta, an error appears as "not enough input arguments" in line 2.
1 function y=y(x)
2 y=sin(x)+2;
3 x0=0;
4 y0=1;
5 x1=4.5;
6 tol=0.02;
7 r=menue
......
  2 件のコメント
Raghunandan V
Raghunandan V 2018 年 10 月 5 日
what is menue?
Esraa Abdelkhaleq
Esraa Abdelkhaleq 2018 年 10 月 7 日
The menu is for selecting the order of RK .

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

採用された回答

KSSV
KSSV 2018 年 10 月 5 日
Don't run the function directly with run button.....call it using:
x = rand ; % some input
y = y(x) ;
See to it that, you are in the folder where the function file is present.
  1 件のコメント
Esraa Abdelkhaleq
Esraa Abdelkhaleq 2018 年 10 月 7 日
Thanks a lot for your reply.

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by