diff --git a/code/functions/SCDconf_createexpcodes.m b/code/functions/SCDconf_createexpcodes.m index 6f78bed0ae900fcab532f1d27803a04f5713a931..a7bf2d38e56cc32d9b3fc91681d669511feef482 100644 --- a/code/functions/SCDconf_createexpcodes.m +++ b/code/functions/SCDconf_createexpcodes.m @@ -1,4 +1,4 @@ -function [] = SCDconf_createexpcodes() +function SCDexps = SCDconf_createexpcodes() %% The expcode container, % it contains a list of expcode numbers and function pointers @@ -15,8 +15,10 @@ SCDexps=SCDexps.insertexpcode(1005, @(x) SCDexpcodeconf_tcvstandard02); SCDexps=SCDexps.insertexpcode(10 , @(x) SCDexpcodeconf_f4eexample); SCDexps=SCDexps.insertexpcode(1006, @(x) SCDexpcodeconf_DMmagcontrol); - -assignin('base','SCDexps',SCDexps); +if nargout == 0 + % assign output argument in base + assignin('base','SCDexps',SCDexps); +end end