Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69088

Insert a 2D array into another 2D array at specific locations

$
0
0

Hi,

 

My problem:

I have a 2D array of dimension 3x3. I want to insert this array into a bigger array of dimension 5x5 (having all elements zero, say) at alternate positions.

More clearly,

 

My 3x3 array is suppose: [1 2 3

                                          4 5 6

                                          7 8 9]

 

My final array (5x5 array) should look: [1 0 2 0 3

                                                               0 0 0 0 0

                                                              4 0 5 0 6

                                                              0 0 0 0 0

                                                              7 0 8 0 9]

I will be very grateful, if somebody helps me in this regard.

Thanking You!

 


Viewing all articles
Browse latest Browse all 69088

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>