How to find largest magnitude in matrix?
7 ビュー (過去 30 日間)
古いコメントを表示
2 1 7
3 4 2
11 -22 13
B = largest magnitude
B = -22
0 件のコメント
採用された回答
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))
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!