updateSystemFromUserDefinedFunctions.m
% This function is part of the NMSM Pipeline, see file for full license.
%
% This function updates the osim model if model specific parameters are
% optimized based on given model function.
%
% (struct) -> (struct, struct)
% Updates osim model based on design variables and model function
function inputs = updateSystemFromUserDefinedFunctions(inputs, values)
for i = 1:length(inputs.auxdata.systemFns)
func = str2func(inputs.auxdata.systemFns(i));
inputs = func(inputs, values);
end
end