LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to reverse 2d array

I have a silly question: this works well when reversing columns. How would you do it to reverse lines? Would you just transpose it, reverse it, and transpose it again?

 

Cheers,

Fl0

0 Kudos
Message 11 of 16
(434 Views)

Hi Flonares,

 


@Flonares wrote:

How would you do it to reverse lines? Would you just transpose it, reverse it, and transpose it again?


Yes.

 

Btw. message #10 already handles both cases!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 12 of 16
(421 Views)

 

With the openG function you can reverse by row or column

 

Ben64

ben64_0-1721056081392.png

 

Message 13 of 16
(414 Views)

@Flonares wrote:

I have a silly question: this works well when reversing columns. How would you do it to reverse lines? Would you just transpose it, reverse it, and transpose it again?


Your question is silly in more ways than you might think! 😄

 

  1. We have a long thread with many examples and we have absolutely not idea what you mean by "this". 
  2. Most examples here already reverse rows (lines?), not columns. Where is the confusion?
  3. Several posts already talked about other array transforms.

... so... what was your question again???

0 Kudos
Message 14 of 16
(399 Views)

Hi Gerd! 

I actually hovered over it and did not recognize immediately that it did both things - now I feel silly indeed! Thanks for pointing it out.

 

Cheers,

Fl0

0 Kudos
Message 15 of 16
(361 Views)

You make a very valid argument - I skimmed some examples on the surface but did not realize until I went back and read the thread again that there were further examples already fully developed - so yes, silly me! Anyways, skimming through this thread was actually gold because it´s actually an simple example but with quite robust solutions. 

 

Cheers!

0 Kudos
Message 16 of 16
(357 Views)