how i plot specific point from signal, for example: i want to plot just the points that have y different to zero?

5 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 2 月 6 日
Detail please?
madhan ravi
madhan ravi 2019 年 2 月 6 日
plot(y(y~=0),'+') % plots point other than y=0
benarabi tarek
benarabi tarek 2019 年 2 月 6 日
madhan ravi, in this case index of the points where that have y not a zero appear in linear successive 1 2 3 4, but in reality 1, 6 ,7
madhan ravi
madhan ravi 2019 年 2 月 6 日
Please upload an example and your desired output so that it's clear you want to plot y against which parameter because if the x axis parameter is not defined then it's plotted against index.
benarabi tarek
benarabi tarek 2019 年 2 月 6 日
New Bitmap Image.bmp
I want to draw the points that have different "y" a zero and keep his index in the original

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

 採用された回答

Adam Danz
Adam Danz 2019 年 2 月 6 日
編集済み: Adam Danz 2019 年 2 月 6 日

0 投票

If your data were plotted with
plot(x,y)
and you want to only plot data where y~=0, then first find the indices where y~=0 and eliminate them from both x and y.
yKeep = y~=0;
plot(x(yKeep), y(yKeep))
If you have data that are very close to 0 but not equal to zero (ie, 0.000001) and you want to eliminate them as well, use ismembertol().

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Line Plots についてさらに検索

タグ

質問済み:

2019 年 2 月 6 日

編集済み:

2019 年 2 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by