Adding Stars

3 次查看(过去 30 天)
joseph Frank
joseph Frank 2011-5-29
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*?

采纳的回答

Oleg Komarov
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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by