FUNCTION REFERENCE
mustBeScalarOrEmpty
Validate that value is scalar or empty.
Validate that value is scalar or empty.
Syntax
mustBeScalarOrEmpty(A)Throws an error if A is neither scalar nor empty.
Example
mustBeScalarOrEmpty(42)Differences from MATLAB: None.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.