En-dash problem

조회 수: 5 (최근 30일)
JoshT_student
JoshT_student 2019년 2월 22일
댓글: JoshT_student 2019년 2월 22일
Hello.
I'm trying to get an en-dash in between my SPL sub 1 and SPL sub 2 texts in xlabel, but everytime I do it doesn't work. It just gives me the normal hyphen -
I tried using 'Interpreter', 'latex') but that just messes everything up.
This is what I have: For this code matlab only gives me a hyphen between my two SPL values
xlabel('\bfSPL_{1} - \bfSPL_{2}','FontSize',12, 'FontAngle','italic')
I got the en-dash with help from per isakson; however, is there a way to make the en-dash also bold?
This is a pic of what it looks like:
bold_en-dash..PNG
Thank you for the help.

채택된 답변

Walter Roberson
Walter Roberson 2019년 2월 22일
  댓글 수: 5
per isakson
per isakson 2019년 2월 22일
편집: per isakson 2019년 2월 22일
I think the En-dash already is bold, and that, one my screen, I cannot distinguish a bold from a normal En-dash. Replace char(8211) by 'A' to test. Maybe some other font has a bolder en-dash.
JoshT_student
JoshT_student 2019년 2월 22일
Thanks for the idea. I tried the A test and it was bold, so the En-dash must be already bold I guess. Thanks again.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Title에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by