Some of the MATLAB functions used in signal processing are discussed as follows:
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.
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.
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); ...