How to output Ohm symbol on command window?
조회 수: 16 (최근 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!