segment exact time of signal
Mostra commenti meno recenti
Hi dear viewers.
I want to extract the exact time of the signal,for example I have a signal which is 1*1000000 in size.
and the sampling frequency is 200hz,I want to extract 00:14:36 to 00:16:12 from this signal.
would you please help me?
Risposta accettata
Più risposte (1)
Benjamin Thompson
il 2 Feb 2022
0 voti
So this should be the calculation for the start and end sample numbers:
>> (14*60+36)*200
ans =
175200
>> (16*60+12)*200
ans =
194400
Then if you have a million-element vector D with your data, you can extract what you want as:
D(175200:194400)
Categorie
Scopri di più su Descriptive Statistics 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!