std: MATLAB std function

View source: R/std.R

stdR Documentation

MATLAB std function

Description

Computes the standard deviation of the values of x.

Usage

std(x, flag=0)

Arguments

x

numeric vector or matrix

flag

numeric scalar. If 0, selects unbiased algorithm. If 1, selects biased algorithm (currently unsupported).

Details

Simply invokes sd.

Value

Return value depends on argument x. If vector, returns the standard deviation. If matrix, returns vector containing the standard deviation of each column.

Author(s)

P. Roebuck proebuck1701@gmail.com

Examples

std(1:2) ^ 2

matlab documentation built on July 1, 2024, 5:07 p.m.