simscape.mustBeCommensurateUnit
Description
simscape.mustBeCommensurateUnit(
throws an error if all the units in the list are not positive. 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 ... function to determine
if the units are commensurate.
Examples
Input Arguments
Tips
simscape.mustBeCommensurateUnit
is designed to be used for function argument validation.
Version History
Introduced in R2021b