Typesetting in a figure legend
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
I want to be able to write '\bar{u}' and '\bar{\bar{u}}', for example, in the legend of a figure I have produced. Does anybody know how to do this?
The regular TeX code doesn't seem to work.
Thanks
댓글 수: 0
답변 (1개)
John Petersen
2013년 1월 23일
Try this:
h=legend('$\bar{u}$', '$\bar{\bar{u}}$')
set(h,'interpreter','latex')
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Legend에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!