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
Description
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.
Settings
none
(default) | warning
| error
none
Simulink software takes no action.
warning
Simulink software displays a warning.
error
Simulink software terminates the simulation and displays an error message.
Tips
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
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |
Programmatic Use
Parameter: VectorMatrixConversionMsg |
Value: 'none' | 'warning' | 'error' |
Default: 'none' |
Version History
Introduced in R2008a