fix bug in plot_contributions
parent
683c89de43
commit
b3d05e84df
|
@ -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(','(',')'});
|
||||
|
|
Loading…
Reference in New Issue