DSP Blockset | ![]() ![]() |
Alter the input size by padding or truncating rows and/or columns.
Library
Description
The Pad block changes the size of the input matrix from Mi-by-Ni to Mo-by-No by padding or truncating along the rows, the columns, or both dimensions. The dimensions of the output, Mo and No, are specified by the Number of output rows and Number of output columns parameters, respectively. The value with which to pad the input is set by the Value parameter.
The behavior of the Pad block and Zero Pad block are identical, with the exception that the Pad block can pad the input matrix with values other than zero. See the Zero Pad block reference for more information on the behavior of the Pad block.
Dialog Box
Supported Data Types
To learn how to convert to the above data types in MATLAB and Simulink, see Supported Data Types and How to Convert to Them.
See Also
Matrix Concatenation |
Simulink |
Repeat |
DSP Blockset |
Submatrix |
DSP Blockset |
Upsample |
DSP Blockset |
Variable Selector |
DSP Blockset |
Zero Pad |
DSP Blockset |
Also see Signal Operations for a list of all the blocks in the Signal Operations library.
![]() | Overwrite Values | Permute Matrix | ![]() |