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);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!