How can I find the maximum number and minimum number in a matrix?
Show older comments
I have this matrix
A=
300 300 300 300 300 300
262 262 262 262 262 262
238 218 218 218 218 218
210 192 260 260 260 192
239 221 288 251 251 220
241 223 290 253 245 222
I would like to find the maximum number and minimum number?
Accepted Answer
More Answers (1)
Stephen23
on 5 Jun 2018
Where M is your matrix:
max(M(:))
min(M(:))
Categories
Find more on Matrices and Arrays 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!