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

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

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


Revision 1.1 - (show 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 function a = set(a,varargin)
2
3 propertyArgIn = varargin;
4 while length(propertyArgIn) >= 2,
5 propName = propertyArgIn{1};
6 val = propertyArgIn{2};
7 propertyArgIn = propertyArgIn(3:end);
8 eval(['a.' propName '=val;']);
9 end
10

  ViewVC Help
Powered by ViewVC 1.1.22