How to find largest magnitude in matrix?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Roy dela Rama
il 9 Mar 2016
Commentato: Roy dela Rama
il 9 Mar 2016
2 1 7
3 4 2
11 -22 13
B = largest magnitude
B = -22
0 Commenti
Risposta accettata
Image Analyst
il 9 Mar 2016
Try this:
B=[2 1 7
3 4 2
11 -22 13]
[maxB, index] = max(abs(B(:)))
maxB = maxB * sign(B(index))
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Segmentation and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!