I use looping to implement this formula
https://www.physicsforums.com/attachment.php?
attachmentid=46840&stc=1&d=1335864568
But,when I run, mathlab will hang?Why?
%Import picture into Matlab
img=imread('picture.jpg','jpg');
img512=imresize(img, [512 512]);
imgGRAY=uint8(rgb2gray(img512))...