DSP Blockset    
Pad

Alter the input size by padding or truncating rows and/or columns.

Library

Signal Operations

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

Value
The scalar value with which to pad the input matrix. Tunable.
Pad along
The direction along which to pad or truncate. Columns specifies that the row dimension should be changed to Mo. Rows specifies that the column dimension should be changed to No. Columns and rows specifies that both column and row dimensions should be changed. None disables padding and truncation and passes the input through to the output unchanged.
Number of output rows
The desired number of rows in the output, Mo. This parameter is enabled when Columns or Columns and rows is selected in the Pad along menu.
Number of output columns
The desired number of columns in the output, No. This parameter is enabled when Rows or Columns and rows is selected in the Pad along menu.

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