max of matrix or min matrix or average matrix

조회 수: 49 (최근 30일)
abdullah qasim
abdullah qasim 2021년 2월 4일
댓글: abdullah qasim 2021년 2월 4일
Dear
I have a matrix to say it's R, which is 101 x 101
R (101x101)
I want to find the highest point 'max (R)'
When I want to run code
Re=max (R);
The result is a matrix "1 x 101", but I want one point, the highest point.
Also, I want a minimum a point and Average
And if there is any help with codes and commands ,
Thanks

채택된 답변

Peter Bonavita
Peter Bonavita 2021년 2월 4일
편집: Peter Bonavita 2021년 2월 4일
Michael V's answer here also applies to your question:
This syntax finds the max of the entire matrix:
M = max(R, [], 'all');
Similar for minimum:
M = min(R,[],'all')
and mean:
M = mean(R,'all')
  댓글 수: 1
abdullah qasim
abdullah qasim 2021년 2월 4일
It does not apply to my matrix Can you apply it to my matrix I will accompany you to my matrix

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Filter Banks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by