splitting periodic data using cellarray
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

