From e62c8111ff7d509bc851d4ccc9bfe77725e67fce Mon Sep 17 00:00:00 2001 From: Jonathan Karr Date: Mon, 26 Aug 2013 21:35:05 -0700 Subject: [PATCH] fixing averaging calculation --- .../+covert/+cell/+sim/+util/HighthroughputExperimentsLogger.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;