cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

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

DavidVander
12-Amethyst

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?

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:DavidVander)

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

View solution in original post

8 REPLIES 8

Use the "stack" function.

DavidVander
12-Amethyst
(To:MJG)

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

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

gcevallos
6-Contributor
(To:MJG)

‌yes the stack function join many matrix, it is very useful to drive huge matrix

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

-MFra-
21-Topaz II
(To:DavidVander)

matrices.jpg

Werner_E
25-Diamond I
(To:DavidVander)

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

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

Its solved

Announcements

Top Tags