I have two equations for the same dependent variable, Y1 and Y2 say. Y1 depends on x say and needs a S value that satisfies both equations,
Y1(x,S) and Y2(S) but Y1 = Y2 at a particular value of S.
Y1(x,S)-Y2(S) = 0 when S is the correct value.
I use the root(Y1-Y2,S) method to find an...
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...