11-09-2012 03:09 PM
Hallo,
I can't really explain my problem, but my example normally will be clear..
(I have a random size array: 4-4, 10-3,... and random values)
Thanks for you help!
in:
1 2 3 4
5 6 7 8
9 10 11 12
out:
1 1 2 2 3 3 4 4
5 5 6 6 7 7 8 8
9 9 10 10 11 11 12 12
Solved! Go to Solution.
11-09-2012 03:17 PM
Is your array always 2 dimensions? What have you tried so far? I think you can do this with an auto-indexing for loop and the "Interleave 1D Arrays" function. Give it a try, and post your code if you need more help.
11-09-2012 03:28 PM
Indeed Nathand
11-09-2012 03:49 PM
Great, this does the job very well..
Now for doing te same but vertically, can i use the transpose array function before the interleave function so i copy in the y dimension as well as the x dimension?
11-09-2012 03:52 PM
Just as copying each row so my array also expand down as he expanded horizontally.
11-09-2012 03:57 PM
Alright I got my solution!
Thanks for helping!
11-09-2012 07:10 PM - edited 11-09-2012 07:11 PM
Since Jeff or Nathan were the ones who gave you the solution based on the problem you originally proposed, I think you owe them by marking one of their responses as the solution rather than marking your own final result which is clearly based on the ideas they gave you. First you will have to go to the options menu to the upper right of your message to unmark it as the solution.
At least give them some credit by giving their posts a kudo.