[Scilab-users] {EXT} Re: Removing elements of one vector from another vector

Izabela Wójcik-Grząba iwoj at il.pw.edu.pl
Fri Aug 17 13:06:07 CEST 2018


Thank you very much. I haven't tried it this way but I was really close.

Regards,
Iza





W dniu 17.08.2018 13:01, Dang Ngoc Chan, Christophe napisał(a):
> Hello,
> 
>> De Izabela Wójcik-Grzaba
>> Envoyé : vendredi 17 août 2018 12:09
>> 
>> A=[0 0 0 0 0]' is the initial form of matrix
>> B=[10 15]' is the matrix of values
>> C=[2 4]' is the matrix of positions of the values from B in A, so the 
>> resulting matrix A would look like:
>> A=[0 10 0 15 0]'
> 
> This works well:
> 
> // **********
> 
> A(C) = B
> 
> // **********
> 
> Please have a look at:
> 
> https://help.scilab.org/docs/6.0.1/en_US/extraction.html
> 
> 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
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list