[scilab-Users] Concatenation with hypermatrix

Mike Page Mike at Page-One.Waitrose.com
Wed Jun 1 14:56:49 CEST 2011


Hi,

It depends on how you want the hypermatrices to be joined.  I have done this
before using "casting" to a matrix and then back again.

For example if

-->A = hypermat([2,3,4],[1:24])

and

-->B = hypermat([2,3,2],[101:112])

and I want to join A and B along their common ([2,3]) direction to give a
[2,3,6] hypermatrix, then I can use

-->C=[matrix(A,4,6) matrix(B,4,3)]
-->D = hypermat([2,3,6],C)

But I may have misunderstood what you want to do.

Regards,
Mike.

  -----Original Message-----
  From: Adrien Vogt-Schilb [mailto:vogt at centre-cired.fr]
  Sent: 01 June 2011 13:41
  To: users at lists.scilab.org
  Subject: Re: [scilab-Users] Concatenation with hypermatrix


  At my knowledge there's no better way

  Le 01/06/2011 14:33, Orbeman a écrit :
 I will not use C(:,:,1)=A, C(:,:,2)=B,... but anything like
C=[C @ x] include in a loop


  --

  Adrien Vogt-Schilb

  Research Fellow

  vogt at centre-cired.fr

  Tel: (+33) 1 43 94 73 96

  Fax: (+33) 1 43 94 73 70


       45 bis, Av de la Belle Gabrielle

        F-94736 Nogent-sur-Marne

        http://www.centre-cired.fr/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110601/325e63a9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logocired.png
Type: image/png
Size: 4092 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20110601/325e63a9/attachment.png>


More information about the users mailing list