How can I split time series in a half?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Chris
il 14 Ott 2021
Risposto: Walter Roberson
il 14 Ott 2021
The time series is consisted of 4096 samples.
I want to split it by two of 2048 samples.
0 Commenti
Risposta accettata
Walter Roberson
il 14 Ott 2021
ts1 = timeseries(rand(1,4096));
%official approach. uses indices
ss2a = getsampleusingtime(ts1, 1, 2048);
ss2b = getsampleusingtime(ts1, 2049, 4096);
ss2a, ss2b
%another approach. Uses times with first time being 0
ss1a = resample(ts1, 0:2047);
ss1b = resample(ts1, 2048:4095);
ss1a, ss1b
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Multirate Signal Processing in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!