Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

グラフの軸上の任意の場所にテキストを入力したい

1 view (last 30 days)
Soichiro Kato
Soichiro Kato on 24 Aug 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
タイトルの通り、グラフの軸上の任意の場所にテキストを入力するコマンドはありますか。
PWMの概略を説明するにあたり、MATLAB Answers上の他の質問とその解答から、PWM波形を出力するところまではできました。
結果は添付したグラフのようになりました。
その上でグラフの縦軸について、軸上の値を消し、かつ1の部分にhigh、0の部分にlowとテキストを入力することは可能でしょうか。
  2 Comments
源樹 上林
源樹 上林 on 26 Aug 2020
MATLABのバージョンが新しい場合は簡単ですが、バージョン古い場合はsetを使います。
とりあえずこちらを参照ください。
Soichiro Kato
Soichiro Kato on 27 Aug 2020
現在使用中のバージョンはR2018aです。
教えた頂いたリンク先から
yticks
yticklabels
のコマンドを用いてy軸の中身を任意に設定できるようになりました。
ありがとうございました。

Answers (0)

This question is closed.

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!