bvqxtools_makelibs.m

来自「toolbox of BVQX, This is the access betw」· M 代码 · 共 52 行

M
52
字号
function bvqxtools_makelibs
% bvqxtools_makelibs  - compile MEX functions (mex/compiler needed!)
%
% FORMAT:       bvqxtools_makelibs;
%
% No input/output fields
%
% Note: this should create the following (system dependent) files:
%
%       cov_nd.EXT
%       morphmesh.EXT
%
% If you wish to help the distributors of BVQXtools, please compile
% these files with Matlab v6.5 (R13) on your desired platform and
% send in the binary results to
%
% weber@brainvoyager.com
%
% Thank you!

% get old pwd
opwd = pwd;

% change to path
try
    cd(bvqxtools_path);
    cfiles = findfiles(pwd, '*.c', 'depth=1', 'relative=');
    for cc = 1:numel(cfiles)
        disp(sprintf('Compiling %s...', cfiles{cc}));
        mex('-O', cfiles{cc});
    end
catch
    try
        cd(opwd);
    catch
        % do nothing
    end
    error( ...
        'BVQXtools:MEXError', ...
        'Error compiling MEX functions: %s.', ...
        lasterr ...
    );
end

% change pwd back
cd(opwd);

% rehash everything
rehash toolboxcache;
rehash path;
rehash;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?