From 9b86db48c1272e308ced6c66a6fefaea2b2b52a1 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 4 Jan 2018 10:08:51 +0100 Subject: [PATCH] matlab: use quotation marks around file names Signed-off-by: Thorsten Liebig --- matlab/RunOpenEMS.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/RunOpenEMS.m b/matlab/RunOpenEMS.m index 3894adc..21a9876 100644 --- a/matlab/RunOpenEMS.m +++ b/matlab/RunOpenEMS.m @@ -170,11 +170,11 @@ if (enable_ssh) warning('openEMS:RunOpenEMS','remote cleanup failed!'); end else - args = [Sim_File ' ' opts]; + args = ['"' Sim_File '" ' opts] if isfield(Settings,'LogFile') && isfield(Settings,'Silent') - invoke_openEMS(args,Settings.LogFile,Settings.Silent); + invoke_openEMS(args,['"' Settings.LogFile '"'],Settings.Silent); elseif isfield(Settings,'LogFile') - invoke_openEMS(args,Settings.LogFile); + invoke_openEMS(args,['"' Settings.LogFile '"']); elseif isfield(Settings,'Silent') invoke_openEMS(args,[],Settings.Silent); else