How can we be sure that you won’t edit the question after getting an answer like you did in your previous question?
Symbols in matlab output
10 次查看(过去 30 天)
显示 更早的评论
I want to have the +/- symbol as well as cm ^3 symbol in my code output. I don't know how to code the symbols with fprintf rather than code just the typed out version. My current code reads "fprintf('Body mass changes by = %.5f +/- %.5f cm^3'" which in turn only gives these typed out in the output
回答(1 个)
Walter Roberson
2020-6-25
编辑:Walter Roberson
2020-6-25
fprintf('Body mass changes by = %.5f ± %.5f cm³\n', value1, value2);
The symbols you can output are those in the "primary plane" of Unicode -- those with unicode position up to U+FFFF . There are a lot of things that does not allow you to output -- for example you would have trouble outputing Γ compared to Γ .
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!