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,045 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,036 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,031 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,027 Views)
Cool , that worked !! Thanks didn't know you could do that with a for loop.
 
GM
0 Kudos
Message 5 of 5
(6,018 Views)