Adding Stars
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Oleg Komarov
am 29 Mai 2011
Yes but the number will be converted to a string:
A = rand(1);
if A < 0.06
As = sprintf('%.3f*',A);
end
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!