Azzera filtri
Azzera filtri

How to find largest magnitude in matrix?

7 visualizzazioni (ultimi 30 giorni)
2 1 7
3 4 2
11 -22 13
B = largest magnitude
B = -22

Risposta accettata

Image Analyst
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))
  1 Commento
Roy dela Rama
Roy dela Rama il 9 Mar 2016
Thank you!
I will use this value, "maxB", for power method. It should work...

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by