Hello,
Le 02/10/2012 19:33, [email protected] a écrit :
Dear sir,
Is there an existing function in SCILAB to remove all rows or columns with
with one or more missing values from a matrix such as X.
I want to avoid the alternative of using the scipts such as
K = find(isnan(X))
And then converting the K to row,column format before deleting the rows or
columns with missing values.
I am afraid that a set of instructions is required. One possibility is
the following
(to delete /columns/ with one or more %nan) :
m = rand(5,5);
m(3,2) = %nan;
m(2,4) = %nan
m(:,or(isnan(m),/'r'/)) = []
// m(or(isnan(m),/'c'/),:) = [] // for rows
Regards
Samuel
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users