From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert columns of one array into another

Solved!
Go to solution

how can one insert columns of an array into another array at every odd place of that array in which insertions are to be made? In short, columns of one array to be inserted into another array bt possibly in between the already initialised array. 

0 Kudos
Message 1 of 5
(2,268 Views)

So I assume you're atlking about 2D arrays, right?

 

I'm not too sure that "inserting a column" in the correct wording for what you want, maybe you want to replace some value in a specific column of an array.

 

Can you give a simple example of what you want, like the 2D array before is :

 

A - B - C

D - F - G

 

And after "inserting a column" with  0 - 1 , what do you expect?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 5
(2,266 Views)

thanks for reply.

 

what basically is the need is i have an array,say

Array 1

 

1 2 3 4

5 6 7 8

 

and i have another array,

 

Array 2

 

10 11

12 13

 

the output i want is

 

1 2 10 3 4 11

5 6 12 7 8 13

 

see, the array 2 is inserted in array 1 column wise.

0 Kudos
Message 3 of 5
(2,261 Views)
Solution
Accepted by topic author NainaNarang

here's an example, feel free to ask question if it's not clear for you.

 

hope it helps

 

 


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 4 of 5
(2,254 Views)

ah...thank you so much..silly of me i shud hv used shift registers from the begining...lost it...

 

thanks a lot...:)

0 Kudos
Message 5 of 5
(2,251 Views)