From 25d8ea8bfc7d20802b00193084529a3b0f47512d Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 29 Mar 2013 15:11:25 +0100 Subject: [PATCH] reporting: @series use size instead of numel --- matlab/reports/@series/getName.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/reports/@series/getName.m b/matlab/reports/@series/getName.m index 4296e9bc6..934035963 100644 --- a/matlab/reports/@series/getName.m +++ b/matlab/reports/@series/getName.m @@ -18,6 +18,6 @@ function s = getName(o) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -assert(~isempty(o.data) && numel(o.data) == 1); +assert(~isempty(o.data) && size(o.data, 2) == 1); s = o.data(1).name(); end \ No newline at end of file