필터 지우기
필터 지우기

ADD LATeX legends and labels in MATLAB figures

조회 수: 51 (최근 30일)
Brave A
Brave A 2022년 4월 14일
댓글: Brave A 2022년 4월 14일
I tried to add represent LateX sympol in Legen of figures.
legend({'Mean Energy Consumption', 'Mean of $u_{i}$ Value', ...
'Client Selection Frequency'}, ...
'location', 'northwest');
but the LateX is not working for Legend.

채택된 답변

Riccardo Scorretti
Riccardo Scorretti 2022년 4월 14일
편집: Riccardo Scorretti 2022년 4월 14일
Hi. You must add 'interpreter', 'latex':
figure
plot(rand(20, 3), 'o-');
legend({'Mean Energy Consumption', 'Mean of $u_{i}$ Value', ...
'Client Selection Frequency'}, ...
'location', 'northwest', ...
'interpreter', 'latex');

추가 답변 (0개)

카테고리

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