Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Does anyone know what is the input argument in line 3 mean?

조회 수: 1 (최근 30일)
CodeElinesa
CodeElinesa 2018년 1월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
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
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
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
CodeElinesa
CodeElinesa 2018년 1월 22일
okok I got it!everything works well now.Thank you so much!c:

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by