Main Content

Vector/matrix block input conversion


Select the diagnostic action to take when Simulink® software detects a vector-to-matrix or matrix-to-vector conversion at a block input.

Category: Diagnostics


Default: none


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.

Command-Line Information

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

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Related Topics