フィルターのクリア

Marking highlighted data points with text on a scatter plot

3 ビュー (過去 30 日間)
Matt Rulli
Matt Rulli 2018 年 4 月 8 日
コメント済み: Steven Lord 2018 年 4 月 8 日
After highlighting data points on a scatter plot, how do I apply the text function to include the x values over the points?
scatter(range,ratsmask,'fill','red')
range is the domain of values, and ratsmask is a logical mask identifying which of those values meets a specific condition. The plot is done, but how do I display the x index as text above the point.
text(range,ratsmask,'????')
Any help is appreciated!

回答 (1 件)

Steven Lord
Steven Lord 2018 年 4 月 8 日
Use the text function.
  1 件のコメント
Steven Lord
Steven Lord 2018 年 4 月 8 日
The num2str or sprintf functions may be of use.

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

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by