[Scilab-users] Re : concatenate hypermatrices along the 3rd dimension

Samuel Gougeon sgougeon at free.fr
Mon Oct 8 20:55:08 CEST 2018


Le 08/10/2018 à 15:30, sgougeon at free.fr a écrit :
> Hello Antoine,
>
> Please check cat(3, ..) to concatenate along the 3rd (or any) dimension.
> Please check resize_matrix() to padd an hypermatrix (with what you want).

In your specific padding case, you may better use

b  =   cat(3,[111,112;121,122], [211,212;221,222],  [211,212;221,222])
padded_b=  cat(3,zeros(b),b,zeros(b))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20181008/6ba30cbb/attachment.htm>


More information about the users mailing list