pepdave
Agricultural
- Apr 22, 2009
- 3
I iterated the max() function for each column in a mxn matrix M. This generated an array of maximum values in each of n columns.
I then used the match(z,M) function with z as the maximum values to return position of value z in each column of matrix M. This worked! and generated another array of nested arrays. I now want to extract the first value from each of the nested arrays within the 'parent' array. How do I do this?
Thanks in advance for any help.
I then used the match(z,M) function with z as the maximum values to return position of value z in each column of matrix M. This worked! and generated another array of nested arrays. I now want to extract the first value from each of the nested arrays within the 'parent' array. How do I do this?
Thanks in advance for any help.