Here is my code thus far; aberration_waves=[0.213 0.531 0.605 0.448 0.972 0.054 0.889 0.247 0.128 0.711]; N=numel(aberration_waves);
sum_x=0;
for k=aberration_waves
sum_x=sum_x+k;endxavg=sum_x/N;sum_diff=-xavg;for x=aberration_waves; sum_diff=-xavg+x;endstd=sqrt((sum_diff^2)/(N-1));I have no problem with finding the average it's the standard deviation that is vexing me. Specifically sum_diff, it's not what it should be, I would appreciate some help
Best Answer