Skip to content

Commit

Permalink
Add HG1/HG2 compatibility in graphTimeSeries.m when declaring graphs …
Browse files Browse the repository at this point in the history
…and lines variables.
  • Loading branch information
ggalibert committed Mar 27, 2017
1 parent 6feaf91 commit ac82886
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Graph/graphTimeSeries.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,13 @@
sample_data.variables = sample_data.variables(vars);
lenVar = length(sample_data.variables);

graphs = nan(lenVar, 1);
lines = nan(lenVar, 1);
if verLessThan('matlab','8.1') %R2013a
graphs = nan(lenVar, 1);
lines = nan(lenVar, 1);
else
graphs = gobjects(lenVar, 1);
lines = gobjects(lenVar, 1);
end

iTimeDim = getVar(sample_data.dimensions, 'TIME');
xLimits = [min(sample_data.dimensions{iTimeDim}.data), max(sample_data.dimensions{iTimeDim}.data)];
Expand Down

0 comments on commit ac82886

Please sign in to comment.