Clear Filters
Clear Filters

hii sir i accepted the answer but its showing error in second line ?how we could find mean for image in dat line?

1 view (last 30 days)
can yu say wt will be the error in dat line M = mean2(A)
  1 Comment
Geoff Hayes
Geoff Hayes on 15 Feb 2016
venmal - is that related to your previous question http://www.mathworks.com/matlabcentral/answers/268135-hi-sir-how-to-find-the-mean-for-color-image? Please clarify what you mean by the error in the second line. If you are observing an error message, please copy and paste the full message to this question.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 15 Feb 2016
mean2() is part of the Image Processing Toolbox. If you do not have that toolbox then,
M = mean(A(:));

Community Treasure Hunt

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

Start Hunting!