Skip to main content

initializeMexOrMatlabParallelFunctions.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function initializes the point kinematics and inverse dynamics mex
% files if the appropriate mex extention exists. It also clears previous
% parallel workers
%
% (Array of string) -> ()
% Intializes mex files or clear previous parallel workers


function initializeMexOrMatlabParallelFunctions(modelFile)
if isequal(mexext, 'mexw64')
pointKinematicsMexWindows(modelFile);
inverseDynamicsMexWindows(modelFile);
end
clear inverseDynamicsMatlabParallel
clear pointKinematicsMatlabParallel
end