Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Does anyone know what is the input argument in line 3 mean?
1 回表示 (過去 30 日間)
古いコメントを表示

it is a functional file, and I tried to run it, but it told me there is a error in line3. Someone plz helps me...TY!
1 件のコメント
James Tursa
2018 年 1 月 22 日
In the future, never post screenshots of your code. We can't run screenshots at our end, so we would be forced to retype your code in line-by-line in order to test run it. Please post your code as text, then highlight it and push the "{ } Code" button to format it.
回答 (1 件)
James Tursa
2018 年 1 月 22 日
編集済み: James Tursa
2018 年 1 月 22 日
You probably pushed the green triangle "run" button in the editor, or you entered "myiftest" at the command line without giving any arguments. In both cases, x will be undefined and you will get the error. You need to give an argument, e.g.,
myiftest(2.5)
1 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!