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); ... |
Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.