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: 

integrtae an array into others

Solved!
Go to solution

Hi Guys,

 

I have an array A with the length 10. All elements are equal zero. Now I have second array B with the length of 5 elements. Now I have a third array with also 5 elements. No I need to replace the elements in A whose indices are equal the elements of array C with the elements of array B. For more explanation look at the image !

 

thx

0 Kudos
Message 1 of 4
(3,298 Views)
Solution
Accepted by topic author Mughalles

This is pretty straightforward using autoindexing, a shift register, and "Replace Array Subset":

 

This assumes b and c are of equal size.

Message 2 of 4
(3,288 Views)
Solution
Accepted by topic author Mughalles

As ijustlovemath said, as long as B and C are equal sizes, here you go..

 

ReplaceArraySubset.png

 

 

CLD | CTD
Message 3 of 4
(3,278 Views)

Thank You ! That's what I needed.

0 Kudos
Message 4 of 4
(3,267 Views)