Why obtaining an error while displaying Runge kutta code
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Esraa Abdelkhaleq
am 2 Okt. 2018
Kommentiert: Esraa Abdelkhaleq
am 7 Okt. 2018
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 Kommentare
Akzeptierte Antwort
KSSV
am 5 Okt. 2018
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.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!