How to convert number to text in thousand format?

조회 수: 7 (최근 30일)
Pete sherer
Pete sherer 2021년 10월 29일
답변: Pete sherer 2021년 11월 1일
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"

채택된 답변

Chris
Chris 2021년 10월 29일

추가 답변 (1개)

Pete sherer
Pete sherer 2021년 11월 1일
Thanks very much

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by