Converting 9 digit number into a string
1 回表示 (過去 30 日間)
古いコメントを表示
I have a (1675x 1) number matrix. Each numbers are 9 digit number. I want convert this no into string. When I am giving the num2str command it is giving me (1675 x 9) matrix, but I want to get a (1675 x 1) matrix. How can I do that?
3 件のコメント
採用された回答
Walter Roberson
2017 年 4 月 5 日
Result = compose('%d', YourMatrix);
Otherwise you have to use a cell array if you want individual entries. For example,
Result = cellstr( int2str(YourMatrix) );
2 件のコメント
Walter Roberson
2017 年 4 月 6 日
You should be using cell2table() rather than array2table() so that you can combine values of different types.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!