how to find maximum alement
Show older comments
There is a matrix (nXm )
we should write a code that gives the maximum element in the matrix.
it is eligible to use : sort, max, min , for, if ,while or any loops .
1 Comment
aya qassim
on 25 Dec 2018
Answers (1)
madhan ravi
on 25 Dec 2018
max(matrix(:))
7 Comments
aya qassim
on 25 Dec 2018
madhan ravi
on 25 Dec 2018
Did you see the below answer in the link ??
aya qassim
on 25 Dec 2018
Image Analyst
on 25 Dec 2018
Edited: Image Analyst
on 25 Dec 2018
"eligible" means you CAN do it. Did you mean "ineligible"
The only times we hear people say they cannot use certain functions is if it's their homework. Is this your homework? If it is, then we ethically should not just give you the complete answer. Because usually the professor's assignment is not something like "Have someone else solve this question and turn it in as your own." I think you need to read this link so we can help you in a way you'll feel safe turning in the code.
To find the min or max you either must use loops or use a function. I don't know of any other way off the top of my head.
madhan ravi
on 25 Dec 2018
Me neither..
aya qassim
on 25 Dec 2018
aya qassim
on 25 Dec 2018
Edited: aya qassim
on 25 Dec 2018
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!