3 % the field
'<name>' is created as a parameter separable
function,
if both
4 %
'<name>_components' and
'<name>_coefficients' are present fields of model
6 names = fieldnames(model);
8 for i = 1:length(names)
10 index = regexp(names{i},
'_components');
12 if ~isempty(index) && isfield(model, [names{i}(1:index-1),
'_coefficients'])
14 model.(names{i}(1:index-1)) = @(varargin) eval_affine_decomp_general(...
16 model.([names{i}(1:index-1),
'_coefficients']), ...
function model = insert_affine_decompositions(model)
the field is created as a parameter separable function, if both _components and _c...