Line | |
---|
1 | function F = set(varargin) |
---|
2 | |
---|
3 | |
---|
4 | % I AM SO SORRY FOR MESSING WITH |
---|
5 | % INTERNAL FUNCTIONS; BUT I REALLY |
---|
6 | % WANT TO BE ABLE TO DO set([]) and set; |
---|
7 | |
---|
8 | % CATCH MY CASES |
---|
9 | switch nargin |
---|
10 | case 0 |
---|
11 | F = lmi; |
---|
12 | return |
---|
13 | case 1 |
---|
14 | if isempty(varargin{1}) |
---|
15 | F = lmi; |
---|
16 | return |
---|
17 | end |
---|
18 | otherwise |
---|
19 | end |
---|
20 | |
---|
21 | % ... Leave for standard code |
---|
22 | try |
---|
23 | if nargout == 0 |
---|
24 | builtin('set',varargin{:}); |
---|
25 | else |
---|
26 | F = builtin('set',varargin{:}); |
---|
27 | end |
---|
28 | catch |
---|
29 | error(lasterr); |
---|
30 | end |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.