How to output Ohm symbol on command window?
20 次查看(过去 30 天)
显示 更早的评论
I can't figure out how to output the ohm symbol. I've found some codes that say to add \Omega, but it does not work. I am trying to put it on an fprintf statement.
0 个评论
回答(1 个)
Star Strider
2018-9-21
This works for me in R2018b:
Ohm = char(hex2dec('03A9'));
fprintf(1, '1V/1A = 1%s\n', Ohm)
producing:
1V/1A = 1Ω
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!