フィルターのクリア

how do I annote a vector on a signal plot

2 ビュー (過去 30 日間)
fadams18
fadams18 2022 年 10 月 14 日
コメント済み: fadams18 2022 年 10 月 14 日
Hello guys,
So i have a signal plot. and then I have a vector that are indexes to some particular events in this signal.
So I want to plot this vector also on my signal. Ideally I want it to look something like in the image below.
The orange is my signal. so assuming I have a vector I want to annote it as shown in the violet crosses.
Note: The crosses dont depend on the y axis.

採用された回答

KSSV
KSSV 2022 年 10 月 14 日
A = rand(1,100) ;
idx1 = find(A>0.7) ;
idx2 = find(A<0.4) ;
plot(A,'b')
hold on
plot(idx1,0.8,'+r')
plot(idx2,0.2,'+k')
  1 件のコメント
fadams18
fadams18 2022 年 10 月 14 日
awesome, got the idea. thanks!

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by