I just started matlab and need to finish this program really fast, so I don\'t have time to go through all the tutorials.
can someone familiar with it please explain
According to the reference manual,
C = max(A,[],dim)returns the largest elements along the dimension ofAspecified by scalardim. For example,max(A,[],1)produces the maximum values along the first dimension (the rows) ofA.
[C,I] = max(...)finds the indices of the maximum values ofA, and returns them in output vectorI. If there are several identical maximum values, the index of the first one found is returned.
I think [] is there just to distinguish itself from max(A,B).