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

Contents of /MITgcm_contrib/gael/matlab_class/@gcmfaces/diff.m

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


Revision 1.1 - (show annotations) (download)
Thu May 6 20:22:51 2010 UTC (15 years, 2 months ago) by gforget
Branch: MAIN
overloading diff and cumsum

1 function r = diff(p,varargin)
2
3 r=p;
4
5 for iFace=1:r.nFaces;
6 iF=num2str(iFace);
7 eval(['r.f' iF '=diff(p.f' iF ',varargin{:});']);
8 end;
9
10

  ViewVC Help
Powered by ViewVC 1.1.22