[Scilab-users] redundant values
CRETE Denis
denis.crete at thalesgroup.com
Sun Dec 16 23:59:16 CET 2012
Hello,
You may probably use the function « tabul ».
HTH
Denis
De : users-bounces at lists.scilab.org [mailto:users-bounces at lists.scilab.org] De la part de Paul Carrico
Envoyé : dimanche 16 décembre 2012 19:29
À : 'International users mailing list for Scilab.'
Objet : [Scilab-users] redundant values
Dear All
In order to solve faster (i.e to avoid unnecessary calculations), I need to look for redundant values
How can I improve the code hereafter, especially the "if" loop ?
NB : please note the test is integrated in a loop, then the cste values change every loop !
Any advice ?
Regards
Paul
i = 1;
while (cste(i) <> cste($))
k = find(cste == cste(i))';
nl_k = size(k, "*")
if (nl_k > 1) then
cste(k(2:$))=[];
end
i = i + 1;
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121216/2f8d4340/attachment.htm>
More information about the users
mailing list