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!