LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

integrtae an array into others

Solved!
Go to solution
Highlighted

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
(1,168 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
(1,158 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
(1,148 Views)

Thank You ! That's what I needed.

0 Kudos
Message 4 of 4
(1,137 Views)