I have a 1D array of numbers, I would like to creat a new array with the same elements but element being at its own index. for example, old array being 1, 5, 6 then new array should be 0, 1, 0, 0, 0, 5, 6, thanks
I would suggest using the replace array element function. This will allow you to place any value in any index. Start with a blank array and then using this function. Hope this helps.
Wire the original array to a max/min function to get the maximum number and add 1 to that number. Initialize an array of zeroes with the size just calculated and wire it to a shift register of a for loop. Now wire the original array into the for loop with autoindexing on and inside the loop use a replace array element function on the array from the shift register with the autoindexed original element both as the index and the value input...wire the result to the right shift register and run...See attached example.