extract value in first row of nested arrays in a matrix
extract value in first row of nested arrays in a matrix
(OP)
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.





RE: extract value in first row of nested arrays in a matrix
A := B[r,c
where r and c are row and column of array B. For a nested array, it is similar but with one or more additional r and c. The key also is selecting the entire expression before pressing "[".
A := B[r1,c1 <space> <space> [r2,c2
Pressing space twice puts the blue line under the entire right hand side expression.
Peter
RE: extract value in first row of nested arrays in a matrix
My early thoughts were that mathcad was limited but it is me who has limits. I am very grateful for this tip. Cheers, Dave