From: Sadik on
Hi Angelo,

It seems you have 256 samples per second.

The 2nd second starts from sample 257 and the 5th second ends at 1280.

Then, the signal at this specific interval will be

dataSpecific = data(257:1280);

If you want something more general, you can say:

tStart = 2;
tEnd = 5;
sampleStart = 256*(tStart-1)+1;
sampleEnd = 256*tEnd;
dataSpecific = data(sampleStart:sampleEnd);

Best.