i need this equation matlab code any body help me.
    3 次查看(过去 30 天)
  
       显示 更早的评论
    
回答(1 个)
  Jan
      
      
 2018-1-15
        
      编辑:Jan
      
      
 2018-1-15
  
      gbar   = sum(g(:)) / (M * N);
sigma2 = sum((g(:) - gbar) .^ 2) / (M * N - 1);
Looks straight forward. But what about:
sigma2 = var(g(:))
1 个评论
  Image Analyst
      
      
 2018-1-15
				and
gBar = mean(g(:)) % Compute mean over all values in the 2-D matrix.
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



