[scilab-Users] Concatenation with hypermatrix

Samuel GOUGEON Samuel.Gougeon at univ-lemans.fr
Wed Jun 1 14:50:06 CEST 2011


  Hello,

----- Message d'origine -----
De : Orbeman
Date : 01/06/2011 14:33:
> Hello,
>
> Is it possible to concatenate hypermatrix ? I use [A B] and [A;B] to
> cocatenate 2D-matrix in row and in line respectively.
Yes. Try this:
a = int(rand(2,2,2)*10)
b = int(rand(2,2,2)*10)
c = matrix([a ; b],[2 2 4])

HTH
Samuel
PS: You may also use size() to compute from a and b the vector of total sizes 
needed for matrix()


> But I envisage working with 3D matrix and concatenate some 2D matrix in
> "thickness". I will not use C(:,:,1)=A, C(:,:,2)=B,... but anything like
> C=[C @ x] include in a loop.
>
> I hope that I was intelligible because I don't speak english very well.
>
> Thank you !
>
> --
> View this message in context: http://mailinglists.scilab.org/Concatenation-with-hypermatrix-tp3010503p3010503.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
>




More information about the users mailing list