[Scilab-users] unique instruction

Carrico, Paul paul.carrico at auxitrolweston.com
Tue May 12 21:40:54 CEST 2020


Dear All
In the matrix here after, I want to remove duplicate values in the first column but while keeping the second one as it stands ; I guess Scilab while keep the first occurrence but it's fine.
I do not remember how to use correctly  "unique" and all my trials failed: can somebody help me?
Thanks
Paul

Before :

M = [

0 2

0 6

1 8

2 9

]
After :

M = [

0 2

1 8

2 9

]

 Or

M = [

0 6

1 8

2 9

]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200512/941f7864/attachment.htm>


More information about the users mailing list