[Scilab-users] Removing elements of one vector from another vector

Claus Futtrup cfuttrup at gmail.com
Thu Aug 16 19:23:12 CEST 2018


Hi Iza

Yes, as Dang says ... I think what you're doing is one of several 
"set-operations" you can do in Scilab. Others may also come in handy for 
you:

https://help.scilab.org/doc/5.5.2/en_US/section_b26c1facefdb399710752631e1bfb765.html

/Claus

On 16.08.2018 16:55, Izabela Wójcik-Grząba wrote:
> Hello,
>
> Is there any simple way to remove from one vector elements which are 
> in another vector. For example:
> a=[1 2 3 4 5 6 7 8]
> b=[1 3 5]
> resulting vector: c=[2 4 6 7 8].
> I wonder if this can be done without a "for" loop.
>
> Thanks in advance,
> Iza
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




More information about the users mailing list