Created
March 10, 2018 16:58
-
-
Save OwiseKyawMinOo/c64996d9c8228a045219245ce6380401 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%Project 3 | |
%Owise Kyaw Min Oo | |
function [r,c]=maxind(A) | |
[m,n]=size(A); | |
maxele=A(1,1); | |
for i=1:m | |
for j=1:n | |
if A(i,j)>maxele | |
maxele=A(i,j); | |
r=i; | |
c=j; | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment