How to output Ohm symbol on command window?

조회 수: 16 (최근 30일)
Karla Solis
Karla Solis 2018년 9월 21일
답변: Star Strider 2018년 9월 21일
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.

답변 (1개)

Star Strider
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Ω

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by