Up-sampling in MATLAB Last Updated : 01 Oct, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 interpolate a signal. It is used to increase the sample rate of a signal by an integer factor. Syntax: a = interp(x, r) Parameter: x: input signalr: interpolation factor Return Value: Returns interpolated signal MATLAB code for interpolation of a signal: MATLAB % time vector t = 0 : .00025 : 1; # input signal x = sin(2 * pi * 50 * t) + sin(2 * pi * 100 * t); % increase the sample rate of i/p signal by factor of 4 y = interp(x, 4); 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 up-sampled signal stem(y(1 : 75)); title('Interpolated Signal'); Output: Comment More infoAdvertise with us Next Article What is Upsampling in MATLAB? S sourabhnaikssj Follow Improve Article Tags : Software Engineering MATLAB Similar Reads Down-sampling in MATLAB 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-ti 2 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 Image Zooming in MATLAB MATLAB is a high-performance language that is used for matrix manipulation, performing technical computations, graph plottings, etc. It stands for Matrix Laboratory. With the help of this software, we can also zoom in on an image. Following are the steps to the same. Example 1: Matlab % MATLAB progr 2 min read Numeric Types in MATLAB Numeric class in MATLAB includes signed and unsigned integers, single-precision floating-point numbers, and double-precision floating-point numbers. Generally, MATLAB stores all numeric values as double-precision floating-point. But, we can choose to store any number, or, an array of numbers, as int 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 Like