MATLAB: Help me in performing summation

summation

I want to perform equation 7 and 8
please help me,
N is 256 and mew is 0.5
i tried symbolic summation but could not get answer

Best Answer

It is useless to attempt a symbolic summation of these quantities. Each of the x quantities would have to appear. Just use matlab numeric formulas:
N = length(x);
mu = sum(x)/N;
sigmasquared = sum((x-mu).^2)/(N-1);
Related Question