From 03e306785cd11a6a2fd6289b26b85d828fc10cc4 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Fri, 29 Mar 2013 15:11:25 +0100
Subject: [PATCH] reporting: @series use size instead of numel

---
 matlab/reporting/@series/getName.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/reporting/@series/getName.m b/matlab/reporting/@series/getName.m
index 4296e9bc65..9340359631 100644
--- a/matlab/reporting/@series/getName.m
+++ b/matlab/reporting/@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 <http://www.gnu.org/licenses/>.
 
-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
-- 
GitLab