06-07-2022 04:33 AM
Hello, everyone,
I have a 2D array that consists of a computation of two 1D arrays (Array1, Array2). Now I want to get the row from the 2D array at the position where the maximum value of array 1 is. is that possible? has anyone any idea how to get that? i made a simplified vi to show what i mean
basically i need to split the row of the 2d array, where the value of array 1 its maximum has.
I would be really thankful for any help!!
best regards
06-07-2022 08:06 AM
Hi,
Just by doing what you are describing :
Find the max of 1D array and get the row value
With that row value extract data from the 2D array
06-07-2022 08:29 AM
What happens if there are more than one max?
06-07-2022 08:48 AM - edited 06-07-2022 08:51 AM
Something like that?
Edit:
LOL I'm late to the party. But mine doesn't involve transposing. 😄
06-07-2022 09:49 AM - edited 06-07-2022 09:57 AM
Please explain your use of the term "split"? Do you want to just get one row? "split" typically means something else!
Some comments on your VI:
Here's roughly equivalent code with the solution how the get the row containing the max of the first row.