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!