how can i resolve it not enough input arguments?
1 回表示 (過去 30 日間)
古いコメントを表示
function demo(testdir, n, code)
for k = 1:n %getting error in it
0 件のコメント
採用された回答
Adam
2017 年 1 月 30 日
編集済み: Adam
2017 年 1 月 31 日
Pass the right number of arguments in when you call it. Don't just hit the big green 'Run' button, call it from command line or a script or another function and pass in the arguments.
If you are calling it without arguments how would you expect it to know what n is and didn't you consider that you haven't been able to tell it what n is and that you want to?!
2 件のコメント
Adam
2017 年 1 月 31 日
I have no idea what the function is? But why are you running the function at all if you don't know what it does or what its inputs are supposed to be? I rarely download Matlab code from the internet for exactly this reason of not knowing what its inputs are supposed to be often.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!