01-10-2013 01:41 AM
Hi, I have problem in rearrange back the row for matrix based on my instruction. For example let say we have 5 row and 5 column
a b c d e
f g h i j
k l m n o
p q r s t
u v w x y
so, i want to get row 1 jump to row 3, row 3 jump to row 2, row 2 jump to row 5 and so on. Can somebody help me?
01-10-2013 02:17 AM
Hi jepsepah,
you should use IndexArray to index rows from your input array and ReplaceArraySubset to move those idnexed rows to their new position.
"i want to get row 1 jump to row 3, row 3 jump to row 2, row 2 jump to row 5 and so on."
Is there any hidden scheme in those repositioning algorithm or just random order?
01-10-2013 02:30 AM
If you have the order defined then you can use an Index Array and For loop to do the Job.
01-10-2013 04:12 AM
01-10-2013 04:14 AM
GerdW, the arrangement of row is important to further my project analysis. So, each row have their own characteristics.
01-10-2013 05:17 AM - edited 01-10-2013 05:20 AM
Remove auto indexing of the 2D DBL array coming into the FOR loop.
and then, remove Build arrray function after index function
01-11-2013 03:21 AM
TQ Freelance