Rick, It seems blog eat " " . original code sum(mean_std[ ,]-mean_std[><,]); should be sum(mean_std[ ,]-mean_std[><,]);