12-18-2012 09:50 AM
HI,all
I have a 3D data like following picture
I want change to 2D data like following picture
How can I do? THANKS~
12-18-2012 10:36 AM
In your desired result I only see a 1D array, what is the second dimension?
Also, where is this data being generated? It looks like the array might be being formatted incorrectly to begin with. Could we see the code where the array is being created?
Mike...
12-18-2012 11:02 AM
sorrry.. The title must change 3D array to 1D array
This is my VI. but you might can't run this, because it's contain scope card.
12-18-2012 11:04 AM
This is my VI.
12-18-2012 11:37 AM - edited 12-18-2012 11:38 AM
Why don't you just use the Auto-indexing tunnels on the FOR loops? The code in there can become a lot simpler.
12-18-2012 11:40 AM - edited 12-18-2012 11:42 AM
I can open your VIs, but I don't see where the 3D array is coming from. The outputs of the express VIs are a 2D array. The loops extract the first 15 columns of each row and after a bit of scaling, extracts the maximum value from each row. The two loops will each generate a 1D array. See crossrulz post to see how this part could be done more efficiently, but for now my main question is:
Where do you get the 3D array?
Mike...