Commit f337c2b0 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

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

parent 6b237eb6
......@@ -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
......
......@@ -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')
......
......@@ -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
......
......@@ -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
......
......@@ -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.
......
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment