Converting a string array into a number array
조회 수: 6 (최근 30일)
이전 댓글 표시
Please how can l convert '123456789' to [ 1 2 3 4 5 6 7 8 9] in MATLAB
댓글 수: 0
채택된 답변
KALYAN ACHARJYA
2021년 2월 13일
편집: KALYAN ACHARJYA
2021년 2월 13일
#Edited
num_str='123456789'
num_str - '0'
Result:
ans =
1 2 3 4 5 6 7 8 9
댓글 수: 7
KALYAN ACHARJYA
2021년 2월 13일
Yes sir @Jan Thanks, In day time, I have answered a similar question, which first required changing num2str, so I used it here by mistake.
Your teaching is very valuable, thank you and much appreciation
추가 답변 (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!