Hello,

> De : Max Rossi
> Envoyé : lundi 30 janvier 2017 00:26
>
> I'm trying to plot in Scilab the surface error of different non rectangular 
> panels (see attachments).
> [...]
> When the panel is not rectangular or circular I'm in trouble assigning %nan 
> to points
> that are inside the grid but outside the panel XY measured locations.
> Is there any smart way to manage the problem?

I'm not sure I understand well your problem
but a nice and efficient way to select a set of matrix elements
is to have a matrix of booleans of the same size,
a kind of mask.

If map1 is the matrix of values you want to display
and mask is a matrix of booleans, mask(m, n) is %t if (Xg(m), Yg(n)) is inside 
the panel,
then you can use

map1(~mask) = %nan;

see https://help.scilab.org/docs/6.0.0/en_US/extraction.html

HTH

Regards

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
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.
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to