LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

splitting arrays

Solved!
Go to solution
Solution
Accepted by topic author LSASS

James R wrote:

Tinnitus  I have to dissagree with your method to eliminate the transpose array


I fully agree. You cannot swap the inputs to "reshape array" without completely changing the outcome.

 

In this particular case, the reshape array followd by transpose is however not very memory efficient, because both nodes require a new buffer allocation for the (potentially large) array. It would be much easier to operate directly on the 1D array, e.g. as follows.

 

 

Why reshuffle the entire input array twice if all we really need is to look at a few small subsets? That would only be justifyable if we need the transposed 2D array elsehwere anyway. 😉

 

 

Message Edited by altenbach on 05-11-2009 11:08 AM
Message 21 of 23
(868 Views)

Yes you are  right,

 

the thing to know is what lsass 1Darray is 12345678,12345678,12345678.... or 11111111 22222222,33333333,44444444,.....

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Message 22 of 23
(832 Views)

Hello evryone!!!

Thanks for the great help. I have successfully been able to do what I want to do. I used the reshape array with the size multiplied by iteration value as my index and it works perfectly. Huge THANKS to all:)

 

Btw, my array is a binary one like...11100001111000..etc

0 Kudos
Message 23 of 23
(817 Views)