Skip to content

Commit 58341ed

Browse files
committed
assign outputs to varargout [#898]
1 parent 93f66b5 commit 58341ed

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/pspm_data_editor.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,14 @@ function RemovePlot(hObject, chan_id)
370370
% handles structure with handles and user data (see GUIDATA)
371371
% UIWAIT makes pspm_data_editor wait for user response (see UIRESUME)
372372
% handles.lbEpochsvarargout{1} = handles.output;
373+
for i = 1:nargout
374+
varargout{i} = []; %#ok<AGROW>
375+
end
376+
377+
if isfield(handles, 'output')
378+
varargout{1} = handles.output;
379+
end
380+
373381
delete(hObject);
374382

375383
function lbEpochs_Callback(hObject, ~, ~)

0 commit comments

Comments
 (0)