14 |
% 1=section, 2=subsection (not yet implemented) |
% 1=section, 2=subsection (not yet implemented) |
15 |
% myFig is a figure handle (for myStep=2) |
% myFig is a figure handle (for myStep=2) |
16 |
|
|
17 |
|
if isempty(myFile); |
18 |
|
%if no file name, then do nothing |
19 |
|
return; |
20 |
|
end; |
21 |
|
if iscell(myFile); |
22 |
|
%extecute alternative command (myFile{1}) passing rest as arguments |
23 |
|
eval([myFile{1} '(myFile{2:end});']); |
24 |
|
return; |
25 |
|
end; |
26 |
|
|
27 |
|
|
28 |
myText=[]; myLev=[]; myFig=[]; |
myText=[]; myLev=[]; myFig=[]; |
29 |
if myStep<4; myText=varargin{1}; end; |
if myStep<4; myText=varargin{1}; end; |
30 |
if myStep==1; myLev=varargin{2}; |
if myStep==1; myLev=varargin{2}; |