How to find largest magnitude in matrix?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Roy dela Rama
am 9 Mär. 2016
Kommentiert: Roy dela Rama
am 9 Mär. 2016
2 1 7
3 4 2
11 -22 13
B = largest magnitude
B = -22
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 9 Mär. 2016
Try this:
B=[2 1 7
3 4 2
11 -22 13]
[maxB, index] = max(abs(B(:)))
maxB = maxB * sign(B(index))
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!