To suppress the units inconsistency warnings in MATLAB R2017b, you can set the UnitsInconsistencyMsg parameter to 'none'. Here are the steps to do this:
Method 1: Using Model Configuration Parameters
-
Open your model in Simulink.
-
Go to Simulation > Model Configuration Parameters (or use the shortcut
Ctrl + E). -
In the Model Configuration Parameters dialog, go to the Diagnostics tab.
-
Expand the Advanced parameters section (if not already expanded).
-
Find the parameter UnitsInconsistencyMsg and set its value to `'none''.
-
Save and run your simulation.
Method 2: Using MATLAB Command Window
Alternatively, you can set the parameter programmatically using the MATLAB command window:
set_param('your_model_name', 'UnitsInconsistencyMsg', 'none');
Replace 'your_model_name' with the actual name of your Simulink model.
Summary
By setting the UnitsInconsistencyMsg parameter to 'none', you will suppress the warnings about units inconsistencies in your model. This is useful when you need to define units in a specific way for compatibility with other software, even if they are not recognized by Simulink's unit database.