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