Sample Rate Altering Blocks
1)Upsampler Block:
Description:
The characterisation of the upsampler block can be done by the formula:
y(n)=x(n/L){n=...-L,0,+L...};
= 0 otherwise.
Syntax:
[y ny]=upsampler(x,n,L)
x is a sequence over indices specified by n.L is the upsampling rate. It pads L-1 zeros between any 2 consecutive samples in x.
y is the output sequence over indices specified by ny.
2)Downsampler Block:
Description:
The characterisation of the downsampler block can be done by the formula:
y(n)=x(nM)
Syntax:
[y ny]=downsampler(x,n,M)
x is an input sequence over indices specified by n.L is the downsampling rate.It ignores (M-1) samples between kth sample and (k+M)th sample.
y is the output sequence over indices specified by ny.
Cite As
Yashwant Marathe (2024). Sample Rate Altering Blocks (https://www.mathworks.com/matlabcentral/fileexchange/29784-sample-rate-altering-blocks), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Digital and Analog Filters > Multirate Signal Processing >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Samplers/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |