Fixed bug (wrong use of inputname function).

time-shift
Stéphane Adjemian (Charybdis) 2013-10-16 14:56:23 +02:00
parent 46db51b479
commit 306d8d6f88
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ function B = append(A,a) % --*-- Unitary tests --*--
if isa(a,'dates')
if ~isequal(length(a),1)
error(['dates::append: Input argument ' inputname(a) ' has to be a dates object with one element.'])
error(['dates::append: Input argument ' inputname(2) ' has to be a dates object with one element.'])
end
if isempty(a)
B = A;