Adding Stars
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
Is it possible to add a star superscript next to a number. Example A=0.06. is it possible to say if A<0.06 add a * to A to make it A=0.06*?
0 件のコメント
採用された回答
Oleg Komarov
2011 年 5 月 29 日
Yes but the number will be converted to a string:
A = rand(1);
if A < 0.06
As = sprintf('%.3f*',A);
end
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!