The two basic operations in a multi-rate system are decreasing/down-sampling (decimation) and increasing (interpolation) the sampling rate of a signal.
In down-sampling we start with a constant time signal x(t) and convert it into a succession of tests x[n], in decimation we start with a discrete-time signal x[n] and convert it into another discrete-time signal y[n], which comprises of sub-tests of x[n].
We will be using the decimate() and stem() function.
The decimate() function is used to decrease a sample rate by an integer factor.
Syntax: a = decimate(x, r)
- x: input signal,
- r: decimation factor
Return Value: Decimated Signal
The stem() function is used to plot a discrete sequence data.
- y: data sequence
Return Value: Plot of data sequence in discrete time
MATLAB code for down-sampling:
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Extract bit planes from an Image in Matlab
- Image Processing in MATLAB | Fundamental Operations
- MATLAB | RGB image representation
- MATLAB | RGB image to grayscale image conversion
- MATLAB | Complement colors in a Binary image
- MATLAB | Converting a Grayscale Image to Binary Image using Thresholding
- MATLAB | Complement colors in RGB Image
- MATLAB | Complement colors in a Grayscale Image
- Draw Switzerland Flag Using Matlab
- MATLAB | Display histogram of a grayscale Image
- LSB based Image steganography using MATLAB
- Draw Sweden Flag using matlab
- Difference Between MATLAB and Scilab
- How to draw Japan flag using MATLAB
- Draw Kuwait Flag using MATLAB
- Draw Sudan Flag using MATLAB
- Draw Indian Flag using matlab
- Draw Seychelles Flag using MATLAB
- Plot a line along 2 points in MATLAB
- Display the red, green and blue color planes of a color image in MATLAB
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.