allow RunOpenEMS without options
This commit is contained in:
parent
467af5e5b6
commit
4edc50b981
@ -29,10 +29,14 @@ function RunOpenEMS(Sim_Path, Sim_File, opts, Settings)
|
|||||||
% -----------------------
|
% -----------------------
|
||||||
% author: Thorsten Liebig
|
% author: Thorsten Liebig
|
||||||
|
|
||||||
if nargin < 3
|
if nargin < 2
|
||||||
error 'specify the Sim_Path and Sim_file to simulate'
|
error 'specify the Sim_Path and Sim_file to simulate'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if nargin < 3
|
||||||
|
opts = '';
|
||||||
|
end
|
||||||
|
|
||||||
if (nargin<4)
|
if (nargin<4)
|
||||||
Settings = [];
|
Settings = [];
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user