Create a time vector
1 view (last 30 days)
Hey guys, thanks in advance
I have a program that reads samples from hardware, and counts the time it takes to read that samples, so I have two variables of time in val2( the first time is the time it starts receiving, and the final time in val2 is the time it stops receiving).
I want to creat a time array in format :
Format = 'hh:mm:ss.SSS';
fs=10e6; % Frequency sampling of receiving the samples
And I want that this array is: first time: 1/fs : end time, basiccaly the values between the vector, should have the time dependent on the frequency sampling.