Commit 586cfaa8 authored by Houtan Bastani's avatar Houtan Bastani

modify dyn_ols to remove `diff`

parent c9e07a83
......@@ -70,7 +70,7 @@ regex = strjoin(M_endo_exo_names_trim(idxs), '|');
mathops = '[\+\*\^\-\/\(\)]';
for i = 1:length(jsonmodel)
%% Construct regression matrices
rhs_ = strsplit(jsonmodel{i}.rhs, {'+','-','*','/','^','log(','exp(','(',')'});
rhs_ = strsplit(jsonmodel{i}.rhs, {'+','-','*','/','^','log(','diff(','exp(','(',')'});
rhs_(cellfun(@(x) all(isstrprop(x, 'digit')), rhs_)) = [];
vnames = setdiff(rhs_, M_.param_names);
if ~isempty(regexp(jsonmodel{i}.rhs, ...
......
Markdown is supported
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