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

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Fri Aug 17 13:01:20 CEST 2018


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.



More information about the users mailing list