How to format data in table?

I have a function that opens a figure and prints data to a table. The numbers are formatted in scientific notation, how can I change that? I tried format ShortG but it doesn't affect the table. Thank you!

댓글 수: 3

Jan
Jan 2011년 11월 5일
Do you mean a UITABLE? Which format do you want? Can you convert the data using SPRINTF or NUM2STR to strings?
Walter Roberson
Walter Roberson 2011년 11월 5일
The "format" command *only* affects disp() and display() .
Brian
Brian 2011년 11월 6일
Yes, it is a UITABLE. I just want in regular numbers, e.g. 1437.5 not 1.4375e+03

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 6일

0 개 추천

There is no provision to do that in uitable(). When you indicate the format for the column in uitable(), then the only supported alternate format available for numeric entries is 'bank'.
The alternative is to store your entries as character strings.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by