Adding Stars
조회 수: 3 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!