Reputation: 1
I have some raw accelerometer data which were collected unevenly spaced time at sampling rate between 200 and 220 Hz. I would like to analyze the data using stationary methods so I applied matlab anti-aliasing function resample on the raw data. Here is the code I used for resampling:
time_data = timeseries(mag, time) % mag is the magnitue sqrt(x^2 + y^2 + Z^2)
fs = 26; %frequency
time_end = 50;
dt = 1 / fs; % new vector of time with fixed dt = 1 / fs
new_time = 1:dt:time_end;
time_datanew = resample(time_data, new_time);
My questions are: How do I choose the frequency fs i.e. which sampling rate should I choose for the resampled data? And what should the end time be, i.e how large should this window be to detect some important features?
Hope my questions make sense:)
Thank you very much for your help.
Upvotes: 0
Views: 498