フィルターのクリア

How to plot the maximum value as an "asterik" everything else is just a normal line?

1 回表示 (過去 30 日間)
Jab
Jab 2018 年 2 月 16 日
回答済み: Steven Lord 2018 年 2 月 16 日
the maximum value as an "asterik" everything else is just a normal line
  2 件のコメント
Rik
Rik 2018 年 2 月 16 日
What do you mean? A line plot where one value should be plot with a marker as well?
Walter Roberson
Walter Roberson 2018 年 2 月 16 日
plot(x, y, 'k-', x_at_max, y_at_max, 'r*')

サインインしてコメントする。

採用された回答

Steven Lord
Steven Lord 2018 年 2 月 16 日
If you want markers at the rest of the points on the line and a different / larger / different color marker at the maximum, use the code in Walter's comment.
If you want a marker ONLY at the maximum and you're using release R2016b or later, use the MarkerIndices property of the line to specify you only want a marker at the maximum.

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by