diff --git a/helpers/spikoclust_gmem_randinit.m b/helpers/spikoclust_gmem_randinit.m index dbba3ab..a1f8b8e 100644 --- a/helpers/spikoclust_gmem_randinit.m +++ b/helpers/spikoclust_gmem_randinit.m @@ -16,7 +16,7 @@ % initialize all covariance matrices datavar=var(DATA); -initsigma=diag(datavar); +initsigma=diag(datavar) for i=1:NCLUST NEWMODEL.sigma(:,:,i)=initsigma+eye(D).*regularize;