Down-sampling in MATLAB Last Updated : 01 Oct, 2020 Comments Improve Suggest changes Like Article Like Report 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) Parameters: x: input signal, r: decimation factor Return Value: Decimated Signal The stem() function is used to plot a discrete sequence data. Syntax: stem(y) Parameter: y: data sequence Return Value: Plot of data sequence in discrete time MATLAB code for down-sampling: MATLAB % Time vector t = 0 : .00025 : 1; % Original signal x = sin(2 * pi * 50 * t) + sin(2 * pi * 100 * t); % Reduces the sample rate of original signal by factor of 4 y = decimate(x, 4); figure() subplot(2, 2, 1); % Plot few samples of the Original signal stem(x(1:75)) title('Original Signal'); subplot(2, 2, 2); % Plots few samples of the Decimated signal stem(y(1:75)); title('Decimated Signal'); Output Comment More infoAdvertise with us Next Article Down-sampling in MATLAB sourabhnaikssj Follow Improve Article Tags : Software Engineering MATLAB Similar Reads Up-sampling in MATLAB Interpolation or up-sampling is the specific inverse of decimation. It is a data saving operation, in that all examples of x[n] are available in the extended signal y[n]. Interpolation works by adding (Lâ1) zero-valued examples for each input sample. We will be using the interp() function to interp 1 min read What is Upsampling in MATLAB? In this article, we will see Upsampling in MATLAB. As we know that upsampling is the process of increasing the sampling rate, i.e, increasing the number of samples. When an upsampling functions on a series of samples of a signal or other continued function, it has an estimation of the row that would 4 min read Simulink in MATLAB MATLAB which is also known as "Matrix Laboratory" allows its user to manipulate matrixes, plotting of functions and data, creation of algorithms, and user interfaces written in different programming languages by providing a computing environment. MATLAB is software designed and powered by mathworks. 4 min read Upsampling in Frequency Domain in MATLAB Upsampling" is the process of inserting zero-valued samples between original samples to increase the sampling rate. (This is called "zero-stuffing".) Upsampling adds to the original signal undesired spectral images which are centered on multiples of the original sampling rate. In Frequency domain , 4 min read Normalize Data in MATLAB Data Normalization is a technique in statistical mathematics that converts the entire data into a specified range or scale or normalizes it using different methods such as by computing its z-score. There is no specific definition of normalization but, it has various meanings depending on the user's 2 min read Create a Simple App Using GUIDE in MATLAB MATLAB is a (Matrix-Laboratory), matrix-based programming language platform that is majorly used to solve math work and real-time problems. it's specifically designed for engineers and scientists to analyze and design systems. And also capable to solve real-time problems with some histogram equaliza 3 min read Polynomials in MATLAB A polynomial is an expression that is made up of variables, constants, and exponents, that are combined using mathematical operations such as addition, subtraction, multiplication, and division (No division operation by a variable). Polynomials in MATLAB are represented as row of a vector containing 2 min read Functions in MATLAB Methods are also popularly known as functions. The main aim of the methods is to reuse the code. A method is a block of code which is invoked and executed when it is called by the user. It contains local workspace and independent of base workspace which belongs to command prompt. Let's take a glance 5 min read How to remove decimal in MATLAB? In this article, we are going to discuss the "Removal of decimal point" in MATLAB which can be done using sprintf(), fix(), floor(), round() and num2str() functions which are illustrated below. Using sprintf() The sprintf() function is used to write formatted data to a string. Syntax: sprintf(format 3 min read Like