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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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