Mercurial > hg > ltpda
diff m-toolbox/classes/@ao/findFsMin.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/@ao/findFsMin.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,25 @@ +% findFsMin Returns the min Fs of a set of AOs +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% DESCRIPTION: Returns the min Fs of a set of AOs +% +% CALL: fsmin = findFsMin(as) +% +% VERSION: $Id: findFsMin.m,v 1.3 2009/12/22 22:32:12 mauro Exp $ +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +function fs = findFsMin(as) + + fs = realmax; + for jj=1:numel(as) + d = as(jj).data; + if d.isprop('fs') + if d.fs < fs + fs = d.fs; + end + end + end + +end +