Fixed bugs (misuse of inputname function, as in commit #4ce2c3644af333733d802383559de8c0340213bd).

time-shift
Stéphane Adjemian (Charybdis) 2013-09-07 14:31:50 +02:00
parent 6b237eb6c2
commit f337c2b072
6 changed files with 7 additions and 7 deletions

View File

@ -55,7 +55,7 @@ if ~isa(dd,'dynDates')
end
if ~(isa(a,'dynDate') || isa(a,'dynDates') || ischar(a))
error(['dynDates::append: Input argument ' inputname(a) ' has to be ' ...
error(['dynDates::append: Input argument ' inputname(2) ' has to be ' ...
'a dynDate object or a dynDates object or a string (formatted date).'])
end

View File

@ -51,7 +51,7 @@ function dd = pop(dd,a) % --*-- Unitary tests --*--
% AUTHOR(S) stephane DOT adjemian AT univ DASH lemans DOT fr
if ~isa(dd,'dynDates')
error(['dynDates::pop: Input argument ' inputname(dd) ' has to be a dynDates object.'])
error(['dynDates::pop: Input argument ' inputname(1) ' has to be a dynDates object.'])
end
if nargin<2
@ -62,7 +62,7 @@ if nargin<2
end
if nargin>1 && ~(isa(a,'dynDate') || ischar(a))
error(['dynDates::pop: Input argument ' inputname(a) ' has to be a dynDate object or a string (formatted date).'])
error(['dynDates::pop: Input argument ' inputname(2) ' has to be a dynDate object or a string (formatted date).'])
end
if ~isa(a,'dynDate')

View File

@ -47,7 +47,7 @@ function dd = sort(dd) % --*-- Unitary tests --*--
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if ~isa(dd,'dynDates')
error(['dynDates::sort: Input argument ' inputname(dd) ' has to be a dynDates object.'])
error(['dynDates::sort: Input argument ' inputname(1) ' has to be a dynDates object.'])
end
if dd.ndat==1

View File

@ -47,7 +47,7 @@ function dd = unique(dd) % --*-- Unitary tests --*--
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if ~isa(dd,'dynDates')
error(['dynDates::unique: Input argument ' inputname(dd) ' has to be a dynDates object.'])
error(['dynDates::unique: Input argument ' inputname(1) ' has to be a dynDates object.'])
end
if dd.ndat==1

View File

@ -59,7 +59,7 @@ switch length(noise)
case number_of_particles
kitagawa_resampling = 0;
otherwise
error(['particle::resampling: Unknown method! The size of the second argument (' inputname(noise) ') is wrong.'])
error(['particle::resampling: Unknown method! The size of the second argument (' inputname(3) ') is wrong.'])
end
% Set vectors of indices.

View File

@ -66,7 +66,7 @@ switch length(noise)
case number_of_particles
kitagawa_resampling = 0;
otherwise
error(['particle::resampling: Unknown method! The size of the second argument (' inputname(noise) ') is wrong.'])
error(['particle::resampling: Unknown method! The size of the second argument (' inputname(3) ') is wrong.'])
end
% Get the empirical CDF.