MATLAB: Mean calculation on image cleve moler Hi, i'm trying to do mean calculation on a image. But i confuse how to start. Can you guide me to this calculation in matlab? Best Answer Read about mean2, imread Related SolutionsMATLAB: Root mean square calculations Stefan, what happened when you tried this:m = sort(rand(1, 7)); % create sample datamDiff = diff(m)meanSquareOfDiffs = mean(mDiff .^ 2)ms = sqrt(meanSquareOfDiffs)It seems pretty easy if you just take it a step at a dime. Heck, you could even have used a for loop if you really got stuck and needed a simple brute force method. What did you try that didn't work? MATLAB: Calculation of GLCM Mean hi Jassy ,there is an answer ( to check ...) in previous question, i repost it here anyway for further discussion/correction with other Contributers : I=imread('liftingbody.png'); G=graycomatrix(I); [m n]=size(G); GLCMl=0 % left hand side mean GLCMr=0; % right hand side mean for x=1:m for y=1:n GLCMl=GLCMl+x*G(x,y); GLCMr=GLCMr+y*G(x,y); endendThe difference between the two is 111. Related QuestionMean calculation by comparison
Best Answer