Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How do I turn multi-digit value to a multi-elemented vector/string/matrix?
조회 수: 1 (최근 30일)
이전 댓글 표시
To elaborate, say, the value is value=112.
I want it to give me s=2 when I command s=value(end). Using plain number-to-vector commands make 112 remain as a single element, a 1x1 matrix. I want it to be a 3x1 matrix.
I use MATLAB R2014b.
댓글 수: 3
Stephen23
2015년 10월 18일
편집: Stephen23
2015년 10월 25일
Neither int2str nor num2str "make 112 remain as a single element, a 1x1 matrix": in fact given your trial value they both create a 1x3 string:
>> size(num2str(112))
ans =
1 3
>> size(int2str(112))
ans =
1 3
Can you please show how you were using them and managed to create a 1x1 matrix.
답변 (1개)
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!