max of matrix or min matrix or average matrix
    28 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    abdullah qasim
 le 4 Fév 2021
  
    
    
    
    
    Commenté : abdullah qasim
 le 4 Fév 2021
            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
0 commentaires
Réponse acceptée
  Peter Bonavita
    
 le 4 Fév 2021
        
      Modifié(e) : Peter Bonavita
    
 le 4 Fév 2021
  
      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')
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Antennas, Microphones, and Sonar Transducers dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

