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

Ensure that tex and name members are n*1 cells of row char arrays.

parent c39250be
...@@ -54,7 +54,7 @@ else ...@@ -54,7 +54,7 @@ else
end end
if iscellstr(new) if iscellstr(new)
o.name = new; o.name = new(:);
else else
o.name(idname) = {new}; o.name(idname) = {new};
end end
...@@ -108,6 +108,8 @@ end ...@@ -108,6 +108,8 @@ end
%$ %$
%$ if t(1) %$ if t(1)
%$ t(2) = dassert(ts.name, {'Dora', 'The', 'Explorer'}); %$ t(2) = dassert(ts.name, {'Dora', 'The', 'Explorer'});
%$ t(3) = size(ts.name, 1)==3;
%$ t(4) = size(ts.name, 2)==1;
%$ end %$ end
%$ %$
%$ T = all(t); %$ T = all(t);
......
...@@ -59,7 +59,7 @@ else ...@@ -59,7 +59,7 @@ else
end end
if iscellstr(newtexname) if iscellstr(newtexname)
o.tex = newtexname; o.tex = newtexname(:);
else else
o.tex(idname) = {newtexname}; o.tex(idname) = {newtexname};
end end
...@@ -97,6 +97,8 @@ end ...@@ -97,6 +97,8 @@ end
%$ %$
%$ if t(1) %$ if t(1)
%$ t(2) = dassert(ts.tex,{'Output','\\Delta Y_t','\\theta_{-1}'}); %$ t(2) = dassert(ts.tex,{'Output','\\Delta Y_t','\\theta_{-1}'});
%$ t(3) = size(ts.tex, 1)==3;
%$ t(3) = size(ts.tex, 2)==1;
%$ end %$ end
%$ %$
%$ T = all(t); %$ T = all(t);
......
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