Home > classes > @ao > findFsMax.m

findFsMax

PURPOSE ^

findFsMax Returns the max Fs of a set of AOs

SYNOPSIS ^

function fs = findFsMax(as)

DESCRIPTION ^

 findFsMax Returns the max Fs of a set of AOs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: Returns the max Fs of a set of AOs

 CALL:        fsmax = findFsMax(as)

 VERSION:     $Id: findFsMax.m,v 1.4 2008/08/01 13:19:42 ingo Exp $

 HISTORY: 14-05-07 M Hewitson
             Creation

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % findFsMax Returns the max Fs of a set of AOs
0002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0003 %
0004 % DESCRIPTION: Returns the max Fs of a set of AOs
0005 %
0006 % CALL:        fsmax = findFsMax(as)
0007 %
0008 % VERSION:     $Id: findFsMax.m,v 1.4 2008/08/01 13:19:42 ingo Exp $
0009 %
0010 % HISTORY: 14-05-07 M Hewitson
0011 %             Creation
0012 %
0013 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0014 
0015 function fs = findFsMax(as)
0016 
0017   fs = 0;
0018   for j=1:length(as)
0019     a = as(j);
0020     if a.data.fs > fs
0021       fs = a.data.fs;
0022     end
0023   end
0024 
0025 end
0026

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003