Skip to content
Snippets Groups Projects
Commit 955eb64b authored by Olivier Sauter's avatar Olivier Sauter
Browse files

simplify if statement

parent 96add5db
Branches
1 merge request!153Add multi shot
Pipeline #197898 passed
......@@ -188,7 +188,7 @@ try
args = [{shot,data_request},varargin_eff];
end
% treat multiple shot numbers
if exist('shot') && numel(args) > 0 && isnumeric(args{1})
if nargin > 0 && isnumeric(shot)
args_in = args;
for i=1:numel(shot)
args{1} = shot(i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment