Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
CodeElinesa
CodeElinesa el 22 de En. de 2018
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentario
James Tursa
James Tursa el 22 de En. de 2018
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.

Respuestas (1)

James Tursa
James Tursa el 22 de En. de 2018
Editada: James Tursa el 22 de En. de 2018
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 comentario
CodeElinesa
CodeElinesa el 22 de En. de 2018
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