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

📄 bvqxtools_postinstall.m

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 M
字号:
% bvqxtools_postinstall  - post installation tasks
%
% FORMAT:       bvqxtools_postinstall
%
% No input/output fields.

% Version:  v0.7c
% Build:    7100308
% Date:     Oct-03 2007, 8:14 AM CEST
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% clear classes first
try
    clear classes
catch
    % do nothing
end

% build libs (MEX)
try
    disp('Creating MEX files for current platform...');
    bvqxtools_makelibs;
catch
    warning( ...
        'BVQXtools:MEXCompilationError', ...
        'Error compiling MEX file(s) on your platform. Please contact the author of the toolbox for support.' ...
    );
end

% check "helper classes"
try
    disp('Checking BVQXfigure class...');
    v = BVQXfigure;
    if ~isBVQXfigure(v)
        error('CLASS_FAILURE');
    end
catch
    warning( ...
        'BVQXtools:BVQXfigureError', ...
        'Error with BVQXfigure class: %s.', ...
        lasterr ...
    );
end
try
    disp('Checking BVQXinifile class...');
    v = BVQXinifile;
    if ~isBVQXinifile(v)
        error('CLASS_FAILURE');
    end
catch
    warning( ...
        'BVQXtools:BVQXinifileError', ...
        'Error with BVQXinifile class: %s.', ...
        lasterr ...
    );
end

% check BVQXfile and build cached formats info
try
    disp('(Re-)Creating BVQXfile cached information...');
    try
        cachefile = [bvqxtools_path '/@BVQXfile/cache/cache.mat'];
        if exist(cachefile, 'file') == 2
            delete(cachefile);
        end
    catch
        % do nothing
    end
    v = BVQXfile;
    x = fieldnames(v.Extensions);
    if mod(numel(x), 8) > 0
        x(end+1:8 * ceil(numel(x) / 8)) = {''};
    end
    x8 = cell(1, numel(x) / 8);
    for xc = 1:numel(x8)
        x8{xc} = gluetostring(x((xc - 1) * 8 + 1:xc*8), ', ');
    end
    x8{end} = regexprep(x8{end}, '(\, ){2,8}', '');
    disp(' ');
    disp(sprintf('Current release supports %d BVQX filetypes:', numel(x)));
    disp(' ');
    disp(upper(gluetostring(x8, char(10))));
    disp(' ');
catch
    warning( ...
        'BVQXtools:BVQXfileError', ...
        'Error creating/loading cached info for BVQXfile class: %s.', ...
        lasterr ...
    );
end

% clean up...
try
    disp('Closing all figures...');
    BVQXfigure(BVQXfigure, 'DeleteAllFigures');
catch
    % do nothing
end

% clear classes
disp('Clearing memory.');
clear classes;
disp('Done.');

⌨️ 快捷键说明

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