request user for input
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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 个评论
Muazma Ali
2017-12-13
KL
2017-12-14
No, it's not. Complete error message means all of the red text.
回答(1 个)
Walter Roberson
2017-12-14
0 个投票
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.
0 个评论
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!