ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reversing a 2D array

Hi,
 
How can you do this
 
| 1 2 3 4 |                   
| 1 2 3 4 |   =====>
| 1 2 3 4 |
| 1 2 3 4 |
0 Kudos
Message 1 of 5
(6,237 Views)
Could you please also show your desired outcome? The implementation will differ depending on if you want to reverse only the rows, the columns, or both.
Message 2 of 5
(6,228 Views)

Hi I posted it in the previous mail but here it is again.

Sorry i pressed Enter twice by mistake

 

Hi,
 
How can you do this
Im reading 4 values at a time and want to store them in a 2 D array
                                | 1 1 1 1 |                  |   4 4 4 4 |  
                                | 2 2 2 2 |   =====>  |  3  3 3 3 |
                                | 3 3 3 3 |                  |   2 2 2 2 |
                                | 4 4 4 4 |                  |   1 1 1 1 |
 
 
Here is my VI.
0 Kudos
Message 3 of 5
(6,223 Views)
Your example is not very good, because all columns are the same. We do not know if the rows got reversed or not
 
A simple example to only reverse each column is attached, there are many ways to do this.
 
Message 4 of 5
(6,219 Views)
Cool , that worked !! Thanks didn't know you could do that with a for loop.
 
GM
0 Kudos
Message 5 of 5
(6,210 Views)