[Scilab-users] surf and %nan
sgougeon at free.fr
sgougeon at free.fr
Tue Nov 21 18:49:33 CET 2017
Hello Richard,
>----- Mail original -----
>Envoyé: Mardi 21 Novembre 2017 17:41:40
>
>Hi all,
>I have a big matrix, which I want to surf plot. However there are actually
>only values for a non-rectangular shape and i want to blank out those other
>values (which are -999 by default).
>
>[a,b]=find(M==-999);
>M(a,b) = %nan;
The syntax is:
M(M==-999) = %nan;
or
M(find(M==-999)) = %nan;
Then
surf(M);
should be OK.
HTH
Samuel
More information about the users
mailing list