[Scilab-users] How to remove 'Nan' in a matrix

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Thu Nov 8 16:03:38 CET 2018


Hello Paul,

> De : users [mailto:users-bounces at lists.scilab.org] De la part de
> Carrico, Paul Envoyé : jeudi 8 novembre 2018 15:54
>
> I'm wondering how I can, remove the 'Nan' that appears in a matrix ( with "find" I guess)?

Not sure what you mean by "remove" but for the matrix M, you can try something like

M(isnan(M)) = 0

HTH

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer

Public
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



More information about the users mailing list