From 4edc50b9815202108c713e342d68de92bc66c030 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Tue, 13 Sep 2011 10:50:08 +0200 Subject: [PATCH] allow RunOpenEMS without options --- matlab/RunOpenEMS.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matlab/RunOpenEMS.m b/matlab/RunOpenEMS.m index e6d1ea7..cf3b977 100644 --- a/matlab/RunOpenEMS.m +++ b/matlab/RunOpenEMS.m @@ -29,10 +29,14 @@ function RunOpenEMS(Sim_Path, Sim_File, opts, Settings) % ----------------------- % author: Thorsten Liebig -if nargin < 3 +if nargin < 2 error 'specify the Sim_Path and Sim_file to simulate' end +if nargin < 3 + opts = ''; +end + if (nargin<4) Settings = []; end