simscape.mustBeCommensurateUnit
R2026bValidate that units are commensurate
Description
simscape.mustBeCommensurateUnit(
throws an error if all the units in the list are not commensurate. This function does not
return a value. The error message reports the unit associated with the first argument in the
list and the first unit that is not commensurate with this unit.unitlist)
simscape.mustBeCommensurateUnit calls the commensurate
function to determine if the units are commensurate.
Examples
Input Arguments
Tips
simscape.mustBeCommensurateUnitis designed to be used for function argument validation.
Version History
Introduced in R2021b