What is the escape character when using xlabel?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi everyone, I am trying to output, on the x axis of my graph
z'
Now, I am using the matlab command xlabel('Z','fontsize',12,'fontweight','b');
but require an escape character so that the function does not mistake this.
python or java would have a syntax such as \ to escape but I am not having any luck with this in matlab.
Thank you!
댓글 수: 0
채택된 답변
Jan
2012년 12월 29일
xlabel('Z''','fontsize',12,'fontweight','b')
Inside Matlab strings the quote is the escape character for the quote.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!