How to convert number to text in thousand format?

5 visualizzazioni (ultimi 30 giorni)
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"

Risposta accettata

Chris
Chris il 29 Ott 2021

Più risposte (1)

Pete sherer
Pete sherer il 1 Nov 2021
Thanks very much

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Tag

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by