フィルターのクリア

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 Center および File ExchangeLegend についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by