MATLAB: How i plot specified point from signal

plot

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

Best Answer

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().