Team:Alberta/Project/Modeling/MaxMinAvg
From 2009.igem.org
(Difference between revisions)
Rpgguardian (Talk | contribs) |
|||
Line 1: | Line 1: | ||
- | % | + | %Finds average length of the vertical vectors in cells. Typically used |
- | % | + | %on MinimalGenome (which is the output of FindMinimalGenome) |
- | function [maxValue minValue avg] = MaxMinAvg(ArrayYeah) | + | function [maxValue minValue avg minPosition] = MaxMinAvg(ArrayYeah) |
L=0; | L=0; |
Latest revision as of 01:32, 18 October 2009
%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)