This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Standard deviation


tsstd = std(tsobj)
tsstd = std(tsobj,flag)



Financial time series object.


(Optional) Normalization factor:

flag = 1 normalizes by n (number of observations).

flag = 0 normalizes by n-1.


tsstd = std(tsobj) computes the standard deviation of each data series in the financial time series object tsobj and returns the results in tsstd. The tsstd output is a structure with field name(s) identical to the data series name(s).

tsstd = std(tsobj,flag) normalizes the data as indicated by flag.

Introduced before R2006a

Was this topic helpful?