Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

request user for input

1 visualizzazione (ultimi 30 giorni)
Muazma Ali
Muazma Ali il 13 Dic 2017
Chiuso: MATLAB Answer Bot il 20 Ago 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 Commenti
Muazma Ali
Muazma Ali il 13 Dic 2017
it was the whole error message I got..
KL
KL il 14 Dic 2017
No, it's not. Complete error message means all of the red text.

Risposte (1)

Walter Roberson
Walter Roberson il 14 Dic 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.

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by