Not enough input argument error
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kaushal Kishore
am 2 Sep. 2018
Kommentiert: Kaushal Kishore
am 3 Sep. 2018
Hi i have a matlab code which i have attached with my data. When i run the code it gives error in line 54 stating not enough input argument. Can anyone please check the code for me cause i am new to matlab and advice me accordingly. Many Thanks
7 Kommentare
Akzeptierte Antwort
Walter Roberson
am 2 Sep. 2018
When you run a function from the editor then no parameters are provided for it, and most attempts to reference the variables will give exactly the error message that you see.
When you run a function, MATLAB will not look in the calling environment to try to find variables with the same name as the parameters. You have to pass the values at the time the function is invoked.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Debugging and Analysis 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!