|
"Faraz Afzal" <farazafzal@gmail.com> wrote in message <i07j80$at$1@fred.mathworks.com>...
> "Shahab " <shahabteimouri@gmail.com> wrote in message <i078q8$psi$1@fred.mathworks.com>...
> > Please let me know what is the best way to synchronize the data that I collected from different data acquisition devices with different starting sampling clocks and sampling intervals. I want to compare the results of three different sources and resample them with the same sampling period. I should say that I know the starting clock of each device.
> > Thank you.
>
>
> Dear Shahab
>
> Your problem seems simple. Let me know if this worked for you..
> Suppose u have 3 data matrices for each source.. A, B, C
> Suppose each matrix is a 2 column matrix such as
> A= [time1 data1]
> B= [time2 data2]
> C= [time3 data3]
> time for each of them is 20 seconds, sampled at different intervals..
> U want suppose 1000 samples between these 20 seconds,
> use linspace to give them all same time such as
> TIME = linspace(0,20,1000);
> or if u are interested in the indices of the time vector at which data is sampled use
> Intersect..
> I hope it helps..
> Doc linspace and Intersect for more clarification,..
>
> Regards,
> Faraz
Dear Faraz,
Thank you very much for your attention but I think it is not straight forward like this.
I should clarify that my experiment was temperature measurement. I had three different data acquisition devices such as data logger and a National Instrument device for collecting the data. Each of them has a different sampling frequency but I only know the clock of each device since they started almost simultaneously. Now I want to compare the temperature of different channels and I have to synchronize them together to have the same sampling rate and same vector size. Later, I have to use them in the calibration process and compare them with simulation. I am looking forward to your reply if you have any idea about this.
Best regards,
/Shahab
|