10 October 2017 7 7K Report

Hi everyone!

Now, i'm reading a book "Noise and vibration analysis" by Anders Brandt. And in this book, the author wrote that we can change bandwidth of a measured signal using resample command.

And of course, have a code for implementation, see below:

N=1000; % Number of samples to start with

x=randn(N,1); % Gaussian noise, oversampling ratio is 2

x=resample(x,5,1); % Resample to 10 times oversampling

x25=x(1:4:end); % Oversampling ratio of x25 is 2.5

xr=resample(x25,4,1); % oversampling ratio of xr is 10

% Plot ’original’ data x, and the resampled xr

plot(1:50,x(1:50),’ok’,1:50,xr(1:50),’+k’)

legend(’Original’,’Resampled’)

xlabel(’Sample Number’)

Actually, i don't understand why this code can change bandwidth of a measured signal.

Who can explain to me?

Thank you so much.

More Le Dung's questions See All
Similar questions and discussions