Expression Type |
IsArray(x) Returns 1 if x is a vector or matrix. Returns 0 otherwise.
IsNaN(x) Returns 1 if x is NaN. Returns 0 otherwise.
IsScalar(x) Returns 1 if x is a real or complex scalar. Returns 0 otherwise.
IsString(x) Returns 1 if x is a string. Returns 0 otherwise.
SIUnitsOf(z) Returns the dimensions of z scaled to the default SI unit, regardless of your chosen unit system. Returns 1 if z has no units.
UnitsOf(z) Returns the dimensions of z scaled to the default SI unit. Returns 1 if z has no units.
Divide a value by the SIUnitsOf function to make it unitless, scaled in SI. This function is most useful for stripping then reapplying units to arguments and results for functions that will not accept units, such as regress, genfit, or the ODE solvers.
The IsScalar, IsString, and IsArray functions are most useful inside the conditional statement of a program.
IsNaN is most useful in conditionally handling missing values in data sets.
The UnitsOf function is deprecated, and is available in the SI and None unit systems only for backwards compatibility. Please migrate worksheets to the new function name SIUnitsOf.