string to array and then getting the first value of the array
이전 댓글 표시
I am trying to write a code that has a user input a string (in this case Yes).
This string then needs to be convereted to an array so that I can get the first value of said array. (i.e the Y.)
This is what I have so far.
solid = input('Is it a solid color?:' , 's');
If someone can point me in the right direction it would be greatly appriciated.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!