Team:Alberta/Project/Modeling/MaxMinAvg
From 2009.igem.org
(Difference between revisions)
Ebennett (Talk | contribs)
(New page: %Since FindMinimalGenomes.m finds an indefinite number of possible minimal genomes, the researcher is likely going to want to know %how small the smallest list is, and where in the cell...)
Newer edit →
(New page: %Since FindMinimalGenomes.m finds an indefinite number of possible minimal genomes, the researcher is likely going to want to know %how small the smallest list is, and where in the cell...)
Newer edit →
Revision as of 07:15, 2 October 2009
%Since FindMinimalGenomes.m finds an indefinite number of possible minimal genomes, the researcher is likely going to want to know %how small the smallest list is, and where in the cell array that minimal genome is located (along with other statistical information). function [maxValue minValue avg] = 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)