Team:Alberta/Project/Modeling/MaxMinAvg
From 2009.igem.org
%Finds average length of the vertical vectors in cells. Typically used %on MinimalGenome (which is the output of FindMinimalGenome) function [maxValue minValue avg minPosition] = MaxMinAvg(ArrayYeah) L=0; for u=1:length(ArrayYeah) L(u)=length(ArrayYeah{u}); end maxValue = max(L) [minValue minPosition] = min(L) avg = sum(L)/length(L)