Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

request user for input

1 vue (au cours des 30 derniers jours)
Muazma Ali
Muazma Ali le 13 Déc 2017
Clôturé : MATLAB Answer Bot le 20 Août 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 commentaires
Muazma Ali
Muazma Ali le 13 Déc 2017
it was the whole error message I got..
KL
KL le 14 Déc 2017
No, it's not. Complete error message means all of the red text.

Réponses (1)

Walter Roberson
Walter Roberson le 14 Déc 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.

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by