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