Skip to content

Commit

Permalink
display correct inputname in error message of isargequalsize
Browse files Browse the repository at this point in the history
  • Loading branch information
Fiete Winter committed May 21, 2015
1 parent acfdda8 commit 3ac9214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SFS_helper/isargequalsize.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ function isargequalsize(x1,varargin)
%% ===== Checking for equal size =========================================
for ii = 1:nargin-1
if ~isequal(size(varargin{ii}),size(x1))
error('%s and %s have not the same size',inputname(1),inputname(2));
error('%s and %s have not the same size',inputname(1),inputname(ii+1));
end
end

0 comments on commit 3ac9214

Please sign in to comment.