allow `sur` to be run from the Matlab prompt

time-shift
Houtan Bastani 2019-11-21 20:10:39 +01:00
parent 13cadd8e02
commit 7b1c61f63c
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ end
%% Return to surgibbs if called from there
st = dbstack(1);
if strcmp(st(1).name, 'surgibbs')
if ~isempty(st) && strcmp(st(1).name, 'surgibbs')
varargout{1} = nobs;
varargout{2} = X{param_names{:}}.data;
varargout{3} = Y.data;