View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Sample Rate Altering Blocks

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 1.9 KB File ID: #29784 Version: 1.0

Sample Rate Altering Blocks

by

 

The folder contains 2 codes: 1)to implement an upsampler 2)to implement a downsampler

| Watch this File

File Information
Description

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.

Required Products Signal Processing Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Other requirements None
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us