Watch this Author's files
Sorry for previous comment, i was wrong and standard deviation computation is correct.
I think standard deviation computation is wrong. Error like (a+b)^2 <-> a^2+b^2
good
Contact us at files@mathworks.com