Im trying to make my function run faster and I was wondering if anyone can help me. I'm trying to calculate the following equation :
ImageShack - Image Hosting :: 29384513.jpg
where N and M are inputs. Basically i need to caluclate that sum for all values of m.
This is my current code:
function [e] = new5(M,N)
%plot histogram of data