concatenate matrices

carsol's icon

hi,

im having some problems to join two 1 plane one dim char matrices to a big matrix of the same type but bigger dim,, im aware of jit.conca but the point is that i need concatenate many matrices not just 2, and jit.conca dont seems the best solution... in resume i need put the content of two matrices char 1 plane dim 4 in diferent locations in a 1 plane char dim 8 matrix.. i was trying the usedstdim but seems that the first matrices need to be same dim of the output matrix, even do this isnt working fine... even having the first matrices writing in diferent positions the cells of the output matrix are refresh...

somebody can point me in the right direction?

Max Patch
Copy patch and select New From Clipboard in Max.

thank you very much,
o

dochanjorge's icon

is this what you are trying to do?

Max Patch
Copy patch and select New From Clipboard in Max.

at the moment I am having trouble on doing the same thing with 16 matrices
but I am having performance issues when using jit.dx.grab from my camera. there must be a better way of doing it.

hope it helps

carsol's icon

hi..
no, what i need is put the values from the first 1 char dim 4 matrix in the cells 0,1,2,3 and the values of the second 1 char dim 4 matrix in the cells 4,5,6,7 of the big 1 char dim 8 matrix... basically similar what does jit.concat,, but im trying to find a workaround because i need concatenate much more matrices and i was thinking the possibility of a better solution...

thanks,
o

carsol's icon

ei jorge.. take a look on this.. it works to me..
take care with the matrices dimension... if its one dimension declare it...
dim 36 1... then jitglue works fine...

Max Patch
Copy patch and select New From Clipboard in Max.

good luck,
o