MATLAB: How to set new variable for each cycle

cyclenew variablesine wave

The figure shows the data of the form sine wave. Now, I wish to define one new variable (e.g. a1, a2, a3) each corresponding to one cycle? Is it possible?

Best Answer

Get the indices of the least values...and you can divide/ name your data. Read about min, findpeaks and logical indexing.