O'Reilly logo

MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] by Manoj Kumar Sharma, Ashok Kumar Goel, Raj Kumar Bansal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

15.4. Multirate Signal Processing Functions

Some of the MATLAB functions used in signal processing are discussed as follows:

15.4.1. decimate

This function is used to decrease the sampling rate of a sequence. The syntax is given as

a = decimate(h,k)

It reduces the sampling rate of a given sequence h by a factor k. The resultant sequence a is k times shorter in length than the original given sequence h.

Example 15.12.

Plot, the given expression x = cos(4πt) for 0 ≤ t ≤ 2 in steps of 0.03 and illustrate the use of decimate function to reduce the sampling rate by 2.

Solution:

The MATLAB program is given below:

%Program to illustrate the use of decimate function t=0:0.03:2; x=cos(4*pi*t); y=decimate(x,2); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required