필터 지우기
필터 지우기

How to add a dot above y in legend

조회 수: 89 (최근 30일)
Kevin Tran
Kevin Tran 2020년 5월 11일
댓글: Kevin Tran 2020년 5월 11일
Hi,
I want to write the first and second derivative with the legend command like this y' y''
This is what I tried:
legend ('y'(0)', 'y''(0)')
but the ' and '' after y interferes with the command.
I tried to search around for answers but found nothing I understood so this is my last resort!
And thanks in advance for the help.

채택된 답변

Walter Roberson
Walter Roberson 2020년 5월 11일
legend({'$\dot{y}(0)$', '$\ddot{y}(0)$'}, 'Interpreter', 'latex')
  댓글 수: 1
Kevin Tran
Kevin Tran 2020년 5월 11일
Thank you so much, this really saved me so much time and helped me alot!

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

추가 답변 (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