フィルターのクリア

How to find largest magnitude in matrix?

7 ビュー (過去 30 日間)
Roy dela Rama
Roy dela Rama 2016 年 3 月 9 日
コメント済み: Roy dela Rama 2016 年 3 月 9 日
2 1 7
3 4 2
11 -22 13
B = largest magnitude
B = -22

採用された回答

Image Analyst
Image Analyst 2016 年 3 月 9 日
Try this:
B=[2 1 7
3 4 2
11 -22 13]
[maxB, index] = max(abs(B(:)))
maxB = maxB * sign(B(index))
  1 件のコメント
Roy dela Rama
Roy dela Rama 2016 年 3 月 9 日
Thank you!
I will use this value, "maxB", for power method. It should work...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Segmentation and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by