Skip to content
Snippets Groups Projects
Commit a7595b13 authored by Federico Felici's avatar Federico Felici
Browse files

Return to base workspace only if nargout==0

parent 03f1f3a7
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment