⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bvqxtools_makelibs.m

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -