Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語
Справка Scilab >> Statistics > Data with Missing Values > thrownan

thrownan

Eliminates nan values

Syntax

[nonan,numb]=thrownan(x)

Arguments

x

a m-by-n real or complex matrix of doubles. If the number of columns in x is different from 1, then the column-by-column matrix x is considered.

nonan

a (m*n)-by-1 real or complex matrix of doubles, without any %nan entries.

numb

a (m*n)-by-1 real or complex matrix of floating point integers, the indices k in x where x(k) is non-nan.

Description

This function returns in vector nonan the values (ignoring the %nan entries) of a matrix x and in the corresponding places of vector numb the indexes of the value.

Examples

x=[0.2113249 %nan 0.6653811;0.7560439 0.3303271 0.6283918]
[nonan numb]=thrownan(x)
and(x(numb)==nonan) // Must be %t
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:13:25 CET 2017