fix bug in plot_contributions

time-shift
Houtan Bastani 2018-01-25 15:53:02 +01:00
parent 683c89de43
commit b3d05e84df
1 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,9 @@ end
% Get equation.
jsonmodel = loadjson(jsonfile);
jsonmodel = jsonmodel.model;
[lhs, rhs, ~] = getEquationsByTags(jsonmodel, 'name', equationname);
lhs = lhs{:};
rhs = rhs{:};
jsonmodel = getEquationsByTags(jsonmodel, 'name', equationname);
lhs = jsonmodel{1}.lhs;
rhs = jsonmodel{1}.rhs;
% Get variable and parameter names in the equation.
rhs_ = strsplit(rhs,{'+','-','*','/','^','log(','exp(','(',')'});