04-26-2025 07:13 AM
Dear all it is so silly task, but I'm stuck for couple of hours... trieing to migrate from Matlab to LabView 😄
Nested for loop with random number generator in the middle. How to get out array, with Loop indexes and random numbers like here...
0 0 rand
0 1 rand
0 2 rand
0 3 rand
1 0 rand
1 1 rand
1 2 rand
1 3 rand
2 0 rand
2 1 rand
2 2 rand
2 3 rand
Solved! Go to Solution.
04-26-2025 07:27 AM
I think this feature is in 2015. If you right-click on the last output tunnel, you can choose Tunnel Mode->Concatenating. You then need to change you indicator to only be 2D.
04-26-2025 07:30 AM
Thank you, just two clicks and done 🙂
If there were not a concentrate feature... what was your approach to solve it?
04-26-2025 07:48 AM
@ku_ku wrote:
If there were not a concentrate feature... what was your approach to solve it?
The old school way would be to use a Shift Register on the outside loop with a Build Array set to Concatenating mode to add to the 2D array.
Just to finalize this, the Concatenating Tunnel was added in 2012: https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-a-quot-Concatenate-Indexing-quot-option-for-array...