Decimation function needs a double precision vector
Show older comments
I am trying to decimate some data that was recorded at 100Hz down to 50Hz. So far, I extracted the three columns to decimate and tried:
data_X = data(:,[3])
It's a massive file, so here is the ouput preview, so you can get an idea of what is going into the next piece of code.

Then, I am trying to run the decimate function using...
data_X_50 = decimate(data_X,2);
resulting in this error:
.I am very new to coding in MatLab and this is my first time posting a question here, so I really appreciate any help.
Accepted Answer
More Answers (0)
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!