Line | |
---|
1 | function 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 | |
---|
17 | if nargin < 1, help(mfilename), return, end |
---|
18 | |
---|
19 | result = []; |
---|
20 | |
---|
21 | if nargin == 1 |
---|
22 | result = ~~self.itIsAutoscaling; |
---|
23 | else |
---|
24 | self.itIsAutoscaling = ~~theAutoscale; |
---|
25 | result = self; |
---|
26 | end |
---|
27 | |
---|
28 | if nargout > 0 |
---|
29 | theResult = result; |
---|
30 | else |
---|
31 | disp(result) |
---|
32 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.