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.
