Skip to main content

JointModelPersonalizationTool.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function is a wrapper for the JointModelPersonalization function
% such that an xml or osimx filename can be passed and the resulting
% computation can be completed according to the instructions of that file.
%
% (string) -> (None)
% Runs JointModelPersonalization after parsing inputs from settings file


function JointModelPersonalizationTool(settingsFileName)
settingsTree = xml2struct(settingsFileName);
verifyVersion(settingsTree, "JointModelPersonalizationTool");
[outputFile, inputs, params] = ...
parseJointModelPersonalizationSettingsTree(settingsTree);
newModel = JointModelPersonalization(inputs, params);
newModel.print(outputFile);
end