Get 10 seconds of a signal

4 visualizzazioni (ultimi 30 giorni)
Mercedes Barrachina
Mercedes Barrachina il 17 Mag 2020
Risposto: Star Strider il 17 Mag 2020
Hi,
I have a signal, which has a fs= 15.5 Hz and having 76.266 samples of the signal, i would like to know how to extract segments of 10 seconds from the signal.
Thanks,
Regards,

Risposte (1)

Star Strider
Star Strider il 17 Mag 2020
A simple calculation to get the number of samples needed is:
number_of_samples = number_of_seconds)*(samples / second)
For 10 seconds, this is 10*fs, or a vector 155 samples in length:
idx = (0:154) + start_index;
where ‘start_index’ is between 1 and 76110.

Categorie

Scopri di più su AI for Signals in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by