Convert string to a cell, array or matrix
이전 댓글 표시
Hi everyone,
I was wondering how I could convert an string to array or matrix.
Thanks very much.
채택된 답변
추가 답변 (2개)
Thorsten
2015년 11월 27일
A string is a 1Xn matrix of type char
S = 'hallo';
You can convert it to a numerical matrix using
M = double(S);
If that is not what you want, please give us more details, and a sample string.
댓글 수: 2
Alfonso Lopez
2015년 11월 27일
Thorsten
2015년 11월 27일
Please post the data.xlsx file such that we can have a closer look.
카테고리
도움말 센터 및 File Exchange에서 Numeric Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!