[Scilab-users] {EXT} Re: create submatrix

Dang Ngoc Chan, Christophe Christophe.Dang at sidel.com
Thu Nov 16 09:30:01 CET 2017


Hello,

> On 11/15/2017 9:42, Hermes wrote:
>
> Hola,
> I have the following matrix
> a = [1 2 3; 4 5 6]
> and I want to select all columns except one.

Another possibility :

--> a = [1 2 3; 4 5 6]
 a  =

   1.   2.   3.
   4.   5.   6.


--> foo = a
 foo  =

   1.   2.   3.
   4.   5.   6.


--> foo(:, 2) = []
 foo  =

   1.   3.
   4.   6.

HTH, 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