Skip to content
Snippets Groups Projects
Commit b113785c authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: table.write: get length only once

parent 6f159b47
Branches
Tags
No related merge requests found
......@@ -30,7 +30,8 @@ function o = write(o, fid, pg, sec, row, col)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert(fid ~= -1);
if length(o.series) == 0
ne = length(o.series);
if ne == 0
warning('@report_table.write: no series to plot, returning');
return;
end
......@@ -150,7 +151,6 @@ fprintf(fid, '\\hline%%\n');
fprintf(fid, '%%\n');
% Write Report_Table Data
ne = length(o.series);
for i=1:ne
o.series{i}.writeSeriesForTable(fid, o.range, o.precision);
if o.showHlines
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment