01-26-2014 08:05 PM
I am trying to transpose some data in an array using a for loop starting from the size of the array then decrement down to 0. Can someone please help if you have an example?
Solved! Go to Solution.
01-26-2014 08:09 PM
You will need to be more specific for us to help. There is a Transpose 2D Array primitive in the Array palette.
Please give an example of exactly how you want the data transposed if that primitive does not do what you need.
Lynn
01-26-2014 08:23 PM
johnsold
For a 2 D array if the values are 1 2 3 4 5 6 7 i would like it to read 7 6 5 4 3 2 1. The only thing is i need it to be done using a For loop instead of using Transpose vi. So I need this to check the size of the array and i decrement down to 0.
It will start at 7, 6, 5, etc which is position 6 in the array down to position 0.
01-26-2014 08:40 PM
Hi *E*,
I don't know if this is what you want
The first one will act similar as using transpose 2D array function. The second will change an order of element from 1234 to 4321
Hope this help
TuiTui
01-26-2014 08:42 PM
This sounds like a school exercise.
Determine how to calculate the index in the input array and how to calculate the index in the output array. Then use Index Array and autoindxing output tunnel or Index Array and replace Array Subset.
Lynn
01-26-2014 09:27 PM - edited 01-26-2014 09:45 PM
01-27-2014 06:33 AM
Thank you to everyone for your replies!