FUNCTION REFERENCE
std
Standard deviation.
Standard deviation.
Syntax
std(A)Syntax
std(A, w, dim)Syntax
std(A, 0, 'all', 'omitnan')w is 0 (divide by n-1, default) or 1 (divide by n). dim is a positive integer or 'all'. 'omitnan' or 'includenan' may follow.
Example
std([1 2 3 4]) % 1.2910Differences from MATLAB: Real and complex double arrays, one output. Vector weights and vecdim are not supported. Complex input gives a real result from abs(x - mean).^2.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.