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!