install_threads.m
来自「Matlab package for PCA for datasets with」· M 代码 · 共 28 行
M
28 行
mvstr = version;i = strfind(mvstr,'.');mv = str2num(mvstr(1:i(1)-1))*100 + str2num(mvstr(i(1)+1:i(2)-1));clear mexoptions libfilesif mv < 703 % If Matlab version is older than 7.3 mexoptions{1} = '-DOLDMATLABAPI';else mexoptions{1} = '-largeArrayDims';endif 0 % The following lines are needed in Windows % Path to pthreads.h mexoptions{2} = '-I"C:\Unix\pthreads-win32"'; % Pthreads library (e.g., pthreads for Win32) libfiles{1} = 'c:\Unix\pthreads-win32\libpthreadGCE2.a'; % pthreadGCE2.dll from pthreads for Win32 is usedelse libfiles = {};endmex( mexoptions{:}, 'subtract_mu.cpp', libfiles{:} )mex( mexoptions{:}, 'errpca_pt.cpp', libfiles{:} )mex( mexoptions{:}, 'errpca_diag.cpp', libfiles{:} )
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?