Team:Alberta/Project/Modeling/MaxMinAvg

From 2009.igem.org

(Difference between revisions)
 
Line 1: Line 1:
-
  %Since FindMinimalGenomes.m finds an indefinite number of possible minimal genomes, the researcher is likely going <br>to want to know
+
  %Finds average length of the vertical vectors in cells.  Typically used
-
  %how small the smallest list is, and where in the cell array that minimal genome is located (along with other<br> statistical information).
+
  %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)