[76e9f4]: / tool_funcs / saveDeformedModel.m

Download this file

20 lines (17 with data), 833 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
%-------------------------------------------------------------------------%
% Copyright (c) 2021 Modenese L. %
% Author: Luca Modenese, 2021 %
% email: l.modenese@imperial.ac.uk %
% ----------------------------------------------------------------------- %
function saveDeformedModel(osimModel, output_model_path)
disp('-----------------------');
disp(' SAVING DEFORMED MODEL ');
disp('-----------------------');
% update credits
osimModel.setAuthors('Created by the MATLAB deformation tool developed by Luca Modenese (2021) See original model file for related information.')
% print model
osimModel.print(output_model_path);
% inform user
disp(['model saved as ', output_model_path,'.']);
disp('Done.')
end