Main Content

Division by singular matrix


Select the diagnostic action to take if the Product, Matrix Multiply block detects a singular matrix while inverting one of its inputs in matrix multiplication mode.

Category: Diagnostics


Default: none


Simulink® software takes no action.


Simulink software displays a warning.


Simulink software terminates the simulation and displays an error message.


For models referenced in Accelerator mode, Simulink ignores the Division by singular matrix parameter setting if you set it to a value other than None.

You can use the Model Advisor to identify referenced models for which Simulink changes configuration parameter settings during accelerated simulation.

  1. In the Simulink Editor, in the Modeling tab, click Model Advisor, then click OK.

  2. Select By Task.

  3. Run the Check diagnostic settings ignored during accelerated model reference simulation check.

Command-Line Information

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

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionerror

Related Topics