Effacer les filtres
Effacer les filtres

splitting data w.r.t. sampling interval

2 vues (au cours des 30 derniers jours)
sermet
sermet le 18 Oct 2016
Réponse apportée : KSSV le 18 Oct 2016
x=1:1:20;
I need to split x array w.r.t 5 sampling interval as follows;
x_5_1=[1 2 3 4 5];
x_5_2=[6 7 8 9 10];
x_5_3=[11 12 13 14 15];
x_5_4=[16 17 18 19 20];
How can I define these sub arrays w.r.t. sampling interval with codes?

Réponse acceptée

KSSV
KSSV le 18 Oct 2016
x = 1:20 ;
x = reshape(x,5,[])' ;

Plus de réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by