Why does NUM2STR not return the correct string format that I specified?
古いコメントを表示
When I use NUM2STR in the following example, the result is a character array of length 6 instead of 10:
d = num2str(123.456, '%10.2f');
whos d
Name Size Bytes Class
d 1x6 12 char array
Grand total is 6 elements using 12 bytes
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!