Main Content

Vector/matrix block input conversion

Diagnostic action to take when vector-to-matrix or matrix-to-vector conversion occurs at block input

Model Configuration Pane: Diagnostics / Type Conversion


The Vector/matrix block input conversion parameter specifies the diagnostic action to take when Simulink® software detects a vector-to-matrix or matrix-to-vector conversion at a block input.


none (default) | warning | error

Simulink software takes no action.


Simulink software displays a warning.


Simulink software terminates the simulation and displays an error message.


Simulink software converts vectors to row or column matrices and row or column matrices to vectors under the following circumstances:

  • If a vector signal is connected to an input that requires a matrix, Simulink software converts the vector to a one-row or one-column matrix.

  • If a one-column or one-row matrix is connected to an input that requires a vector, Simulink software converts the matrix to a vector.

  • If the inputs to a block consist of a mixture of vectors and matrices and the matrix inputs all have one column or one row, Simulink software converts the vectors to matrices having one column or one row, respectively.

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Programmatic Use

Parameter: VectorMatrixConversionMsg
Value: 'none' | 'warning' | 'error'
Default: 'none'

Version History

Introduced in R2008a