# Statmerge.m

From Spinach Documentation Wiki

Merges means and standard deviations of the mean for multiple sample sets into a total mean and total standard deviation of the mean. Syntax:

[total_mean,total_stdm]=statmerge(means,stdms,npoints)

Parameters:

means - a vector of mean values for each sample set

stdms - a vector of standard deviations of the mean for each sample set

npoints - a vector specifying the number of samples in each sample set