source: Roms_tools/mexcdf/netcdf_toolbox/netcdf/@ncitem/autoscale.m @ 1

Last change on this file since 1 was 1, checked in by cholod, 13 years ago

import Roms_Agrif

File size: 782 bytes
Line 
1function theResult = autoscale(self, theAutoscale)
2
3% ncitem/autoscale -- Auto-scale flag of an ncitem.
4%  autoscale(self) returns the auto-scale flag of self,
5%   an ncitem object.
6% autoscale(self, theAutoscale) sets the auto-scale flag
7%   to theAutoscale and returns self.
8 
9% Copyright (C) 1997 Dr. Charles R. Denham, ZYDECO.
10%  All Rights Reserved.
11%   Disclosure without explicit written consent from the
12%    copyright owner does not constitute publication.
13 
14% Version of 07-Aug-1997 09:42:01.
15% Updated    09-Aug-1999 16:18:59.
16
17if nargin < 1, help(mfilename), return, end
18
19result = [];
20
21if nargin == 1
22   result = ~~self.itIsAutoscaling;
23else
24   self.itIsAutoscaling = ~~theAutoscale;
25   result = self;
26end
27
28if nargout > 0
29   theResult = result;
30else
31   disp(result)
32end
Note: See TracBrowser for help on using the repository browser.