Skip to content

Instantly share code, notes, and snippets.

@RDharmaTeja
Created December 9, 2014 05:54
Show Gist options
  • Save RDharmaTeja/70f4e9f5ce703f63335f to your computer and use it in GitHub Desktop.
Save RDharmaTeja/70f4e9f5ce703f63335f to your computer and use it in GitHub Desktop.
%return row and col of max value
function [row,col] = maxOfMatrix(X)
[row,col] = find(X == max(X(:)));
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment