How can I resample 50Hz signal to 30Hz?

Technical Source
1 min readDec 11, 2021

--

I have a accelerometer data whose sample rate is 50Hz. Now, I want to resample this data to 30Hz. How can I do it? I have tried functions like resample, interp and decimate but all of them require the factor to be an integer which is not in this case. Is there any function which can work with non integer factor?

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

It’s always best to upsample rather than downsample because it’s easier to design filters for them.

If you must, use the Signal Processing Toolbox resample funciton:

S50 = ...;                                                  % Signal Sampled At 50 Hz
S30 = resample(S50, 3, 5); % Resampled Signal At 30 Hz

Use resample rather than interp. The resample function incorporates a FIR anti-aliasing filter.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet