how to plot a part of an signal using start and end point, that is stored in an different matrix? also how to calculate the local minima and maxima (ups and downs) within that array?

9 views (last 30 days)
Let A be my original signal. I want to plot B using parts of the signal A, using location data from a DIFFERENT array ( say K) using a FOR loop. The location data are stored nicely in K (K[i] and K[i+1] marks the start and end of the data)
Let the circled pulse be nth and I want to calculate the fluctuations of nth plot? Can anyone help me with the code ?

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 14 May 2016
i1=10
i2=30
yy=y(i1:i2)
plot(yy)

Walter Roberson
Walter Roberson on 14 May 2016

Community Treasure Hunt

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

Start Hunting!