From 58341eda2dc1cad9e12b0fdd0d43a1e55dda9715 Mon Sep 17 00:00:00 2001 From: Jurjen Heij Date: Wed, 29 Apr 2026 12:46:57 +0200 Subject: [PATCH] assign outputs to varargout [#898] --- src/pspm_data_editor.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pspm_data_editor.m b/src/pspm_data_editor.m index db7eb7d6..350c7f5b 100644 --- a/src/pspm_data_editor.m +++ b/src/pspm_data_editor.m @@ -370,6 +370,14 @@ function RemovePlot(hObject, chan_id) % handles structure with handles and user data (see GUIDATA) % UIWAIT makes pspm_data_editor wait for user response (see UIRESUME) % handles.lbEpochsvarargout{1} = handles.output; +for i = 1:nargout + varargout{i} = []; %#ok +end + +if isfield(handles, 'output') + varargout{1} = handles.output; +end + delete(hObject); function lbEpochs_Callback(hObject, ~, ~)