tt = strtrim( string(num2str( [2598.32 256 23125]', '%1.2f')))
tt =
3×1 string array
"2598.32"
"256.00"
"23125.00"
Want result to be
"2,598.32"
"256.00"
"23,125.00"

その他の回答 (1 件)

Pete sherer
Pete sherer 2021 年 11 月 1 日

0 投票

Thanks very much

カテゴリ

ヘルプ センター および File Exchange で Characters and Strings についてさらに検索

製品

リリース

R2021b

タグ

質問済み:

2021 年 10 月 29 日

回答済み:

2021 年 11 月 1 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by