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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Special Insertion of Multiple Vectors into One Vector

hriek
1-Visitor

Special Insertion of Multiple Vectors into One Vector

I'm thinking I need for loops to insert vectors P, M and V into Q as follows:

P0 into Q0

P1 into Q3

P2 into Q6

P3 into Q9

M0 into Q1

M1 into Q4

M2 into Q7

M3 into Q10

V0 into Q2

V1 into Q5

V2 into Q8

V3 into Q11

I need help with the programming and sequencing.

ACCEPTED SOLUTION

Accepted Solutions
MJG
18-Opal
18-Opal
(To:hriek)

In both examples, you can simply change the definition of k from "0...3" to "0...last(P)"

View solution in original post

4 REPLIES 4
MJG
18-Opal
18-Opal
(To:hriek)

How about this?

No programming needed.

MJG
18-Opal
18-Opal
(To:hriek)

If you want to do it programmatically, you could go this way:

hriek
1-Visitor
(To:MJG)

What about for an arbitrary sizes of vectors P, M, V? (these vectors will always be the same size)

MJG
18-Opal
18-Opal
(To:hriek)

In both examples, you can simply change the definition of k from "0...3" to "0...last(P)"

Announcements

Top Tags