Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - English

Change language to:
Français - 日本語 - Português

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Statistics > nanstdev

nanstdev

standard deviation (ignoring the NANs).

Calling Sequence

s=nanstdev(x)
s=nanstdev(x,'r') or m=nanstdev(x,1)
s=nanstdev(x,'c') or m=nanstdev(x,2)

Arguments

x

real or complex vector or matrix

Description

This function computes the standard deviation of the values of a vector or matrix x (ignoring the NANs).

For a vector or a matrix x, s=nanstdev(x) returns in the scalar s the standard deviation of all the entries of x (ignoring the NANs).

s=nanstdev(x,'r') (or, equivalently, s=nanstdev(x,1)) is the rowwise standard deviation. It returns in each entry of the row vector s the standard deviation of each column of x (ignoring the NANs).

s=nanstdev(x,'c') (or, equivalently, s=nanstdev(x,2)) is the columnwise standard deviation. It returns in each entry of the column vector s the standard deviation of each row of x (ignoring the NANs).

In Labostat, NAN values stand for missing values in tables.

Examples

x=[0.2113249 0.0002211 0.6653811;
   0.7560439 %nan      0.6283918;
   0.3       0.2       0.5      ];
s=nanstdev(x)
s=nanstdev(x,'r')
s=nanstdev(x,'c')

Authors

Carlos Klimann

Bibliography

Wonacott, T.H. & Wonacott, R.J.; Introductory Statistics, fifth edition, J.Wiley & Sons, 1990.

<< nanmin Statistics nansum >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:23:42 CET 2011