splitting periodic data using cellarray
Show older comments
Hi,
I have a set of data which is periodic and in each period there is an ascending behaviour. I would like to split this data into sets of only ascending data using a cell array. My code has been successful in creating the first set in the first row of the cell array. My question is: how can I continue with the loop and write the data on the second row of the cell array?
Thanks for your help in advance :)
Here is my code:
auxArray={};
for j=2:1:size(newV_ch)
if newV_ch(j)-newV_ch(j-1)>0
auxArray{end+1}=newV(j);
else
break
end
end
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
