![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/1042927_1522077033509_DEF.jpg)
yousef Yousef
Followers: 0 Following: 0
Hi I have m by n matrix,I want to find the index of the max. of each column.It can be found by [i j]:max(x,[],2).this gives the index of max of each column in vector i.I want if there is a repetion in vector i to be reset to 0.thanks