File Exchange

image thumbnail

Up and Down Sampling

version (37.1 KB) by Shahid Ali Murtza
This function is for both up and down sampling of Discrete Time Signals of Type X[M*n].


Updated 13 Sep 2012

View License

% This function is defined for both up and down sampling of
% any signal x[n]:: [y m]= udnsample(x,n,M)
% ===========================================================
% |***For Down Sampling::If downsampling factor is 2 then M=2|
% |***For Up sampling::If upsampling factor is 2 then M=1/2 |
% ============================================================
% x is the input signal and n is axis for it.
% length(x) must be equal to length(n) and
% n must contain origin i.e. n=[0 1 2 3]
% n=[-1:5] both contains 0(origin of axis).
% Regards Shahid Ali Murtza.

Cite As

Shahid Ali Murtza (2020). Up and Down Sampling (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Humira Ayoub


MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!