필터 지우기
필터 지우기

Typesetting in a figure legend

조회 수: 3 (최근 30일)
pxg882
pxg882 2013년 1월 23일
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

답변 (1개)

John Petersen
John Petersen 2013년 1월 23일
Try this:
h=legend('$\bar{u}$', '$\bar{\bar{u}}$')
set(h,'interpreter','latex')

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by