writeOsimxFile.m
% This function is part of the NMSM Pipeline, see file for full license.(
%
% This function writes an osimxStruct formed by buildOsimxFromOsimxStruct
% or similar function.
%
% (struct, string) -> (None)
% Write calibrated ground contact model parameters to an .osimx file.
function writeOsimxFile(osimxStruct, filename)
filename = ...
strrep(filename, 'osimx', 'xml');
struct2xml(osimxStruct, filename)
copyfile(filename, fullfile(strrep( ...
filename, 'xml','osimx')))
delete(filename)
end