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!