Borrar filtros
Borrar filtros

Info

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

request user for input

1 visualización (últimos 30 días)
Muazma Ali
Muazma Ali el 13 de Dic. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
hi!
dont know why I am getting error here, shouldnt i think, its quite a simple syntax:
svar=input('answer yes:y or no:n. ', 's');
Index exceeds matrix dimensions.
  3 comentarios
Muazma Ali
Muazma Ali el 13 de Dic. de 2017
it was the whole error message I got..
KL
KL el 14 de Dic. de 2017
No, it's not. Complete error message means all of the red text.

Respuestas (1)

Walter Roberson
Walter Roberson el 14 de Dic. de 2017
You have accidentally created a variable named input so when you think you are calling the function index you are actually trying to access the variable.

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by