store string in array
조회 수: 3 (최근 30일)
이전 댓글 표시
hi i want to input string consist of 5 char in array put i can't do that by using the command "input" because it is allow me to input only 1 char and when i input more than one error occur
댓글 수: 1
Evan
2012년 12월 5일
편집: Evan
2012년 12월 5일
Can you please include some example code that reproduces your problem? I'm not having any issues doing what you're describing, but it may be because I'm not understanding your problem. Some sample code is always helpful when asking a question here.
The exact error message that you're receiving is also of help.
채택된 답변
Matt Fig
2012년 12월 5일
What do you mean the INPUT function only lets you input one character?
>> G = input('Enter a string: ','s')
Enter a string: red
G =
red
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!