Info
此问题已关闭。 请重新打开它进行编辑或回答。
request user for input
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Walter Roberson
2017-12-14
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!