From 46827dccb04fb9be003eac93509c0a58c187927e Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Sun, 22 Nov 2020 15:39:41 +0100 Subject: [PATCH] fix matlab console output Signed-off-by: Thorsten Liebig --- matlab/private/invoke_openEMS.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/matlab/private/invoke_openEMS.m b/matlab/private/invoke_openEMS.m index 00af4d6..7409984 100644 --- a/matlab/private/invoke_openEMS.m +++ b/matlab/private/invoke_openEMS.m @@ -45,8 +45,7 @@ else end -[exitcode, shelloutput] = system(command); +exitcode = system(command); if (exitcode~=0); - disp(shelloutput); error(['openEMS binary exited with error-code ' num2str(exitcode)]); end