diff --git a/src/+edu/+stanford/+covert/+cell/+sim/+util/HighthroughputExperimentsLogger.m b/src/+edu/+stanford/+covert/+cell/+sim/+util/HighthroughputExperimentsLogger.m index 0fab152..863b088 100644 --- a/src/+edu/+stanford/+covert/+cell/+sim/+util/HighthroughputExperimentsLogger.m +++ b/src/+edu/+stanford/+covert/+cell/+sim/+util/HighthroughputExperimentsLogger.m @@ -426,7 +426,7 @@ %% average over time %calculate means and variances - nTime = numel(this.time); + nTime = find(this.time, 1, 'last'); this.metConcs.mean = 1 / nTime * this.metConcs.sum; this.dnaSeq.mean = 1 / nTime * this.dnaSeq.sum;