Display Percentages in uitable

I have a numeric matrix of percentages in decimal form.
How can I display percentages (with the percent sign) in a uitable?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 7월 12일

2 개 추천

a=100*rand(100,1);
b=strcat(num2str(a),'%');
c=cellstr(b);
h=uitable('Data',c);

카테고리

도움말 센터File Exchange에서 Debugging and Improving Code에 대해 자세히 알아보기

태그

질문:

2011년 7월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by