ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
clean.m
Go to the documentation of this file.
1%> \brief
2%> Remove all paths that contain the ParaMonte
3%> ``lib`` directory from the MATLAB ``path`` variable.
4%>
5%> \details
6%> This action is particularly vital for correct handling
7%> of MATLAB MEX files for different build configurations.
8%>
9%> \interface{clean}
10%> \code{.m}
11%>
12%> pm.lib.path.clean()
13%>
14%> \endcode
15%>
16%> \final{clean}
17%>
18%> \author
19%> \JoshuaOsborne, May 21 2024, 7:31 PM, University of Texas at Arlington<br>
20%> \FatemehBagheri, May 20 2024, 1:25 PM, NASA Goddard Space Flight Center (GSFC), Washington, D.C.<br>
21%> \AmirShahmoradi, May 16 2016, 9:03 AM, Oden Institute for Computational Engineering and Sciences (ICES), UT Austin<br>
22function clean()
23 libpath = pm.lib.path.lib();
24 pathlist = strsplit(string(path), pathsep);
25 for ipath = 1 : length(pathlist)
26 if contains(pathlist{ipath}, libpath)
27 rmpath(pathlist{ipath});
28 end
29 end
30end
function clean()
Remove all paths that contain the ParaMonte lib directory from the MATLAB path variable.
function lib()
Return a scalar MATLAB string containing the path to the lib directory of the ParaMonte library packa...