/[MITgcm]/MITgcm_contrib/gael/matlab_class/@gcmfaces/nanstd.m
ViewVC logotype

Annotation of /MITgcm_contrib/gael/matlab_class/@gcmfaces/nanstd.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Feb 10 14:43:48 2010 UTC (15 years, 5 months ago) by gforget
Branch: MAIN
matlab_class core routine: gcmfaces methods

1 gforget 1.1 function r = nanstd(p,varargin)
2    
3     if nargin==1;
4     tmp1=[];
5     for iFace=1:p.nFaces;
6     iF=num2str(iFace);
7     eval(['tmp1=[tmp1;p.f' iF '(:)];']);
8     end;
9     r=nanstd(tmp1);
10     return;
11     end;
12    
13     r=p;
14    
15     for iFace=1:r.nFaces;
16     iF=num2str(iFace);
17     eval(['r.f' iF '=nanstd(p.f' iF ',varargin{:});']);
18     end;
19    
20    

  ViewVC Help
Powered by ViewVC 1.1.22