[scilab-Users] repmat

Sylvestre Ledru sylvestre.ledru at scilab.org
Sun Jun 19 10:37:52 CEST 2011


Le dimanche 19 juin 2011 à 01:35 -0700, computidoo a écrit :
> I looking for a function that is like repmat
> 
> i have 
> a=[1 2];
> 
> and i need [1 2 1 2 1 2 1 2 1 2]
Since Scilab 5.3.1, repmat is included into Scilab.
See:

-->a=[1 2];       
 
-->repmat(a, 1, 4)
 ans  =
 
    1.    2.    1.    2.    1.    2.    1.    2.  

Sylvestre





More information about the users mailing list