Skip to main content
1-Visitor
Solved

HEPL!! How to join many matrices in only One?

I wanna join or pass many matrices in only one....

Please look the attached image

its posible?

Werner_E
Werner_EAnswer
25-Diamond I

Your matrices should not be all named the same (k.1)

As you have a variable number of matrices (all with the same number of columns) you could store them in k[1, k[2, etc. and I mean vector/matrix indices here, not literal ones.

Now you could do it that way

8 replies

1-Visitor

Use the "stack" function.

Translate
1-Visitor

it's not possible because the number of matrices to join is variable or dynamic......

Translate
1-Visitor

Can you explain a little more?  I'm not sure what you mean.

Translate
12-Amethyst

Hi.

You can pack matrices into a vector generating a MDA. Further you can acces each one with vector subscript.

Best regards.

Alvaro.

FIG.gif

Translate
-MFra-
21-Topaz II

matrices.jpg

Translate
Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I

Your matrices should not be all named the same (k.1)

As you have a variable number of matrices (all with the same number of columns) you could store them in k[1, k[2, etc. and I mean vector/matrix indices here, not literal ones.

Now you could do it that way

Translate
1-Visitor

i have modified little bit the code but thank you so much.

Its solved

Translate