Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

request user for input

1 Ansicht (letzte 30 Tage)
Muazma Ali
Muazma Ali am 13 Dez. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 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 Kommentare
Muazma Ali
Muazma Ali am 13 Dez. 2017
it was the whole error message I got..
KL
KL am 14 Dez. 2017
No, it's not. Complete error message means all of the red text.

Antworten (1)

Walter Roberson
Walter Roberson am 14 Dez. 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.

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by