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

📄 methods.m

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 M
字号:
function M = methods(S)
% BVQXfile::methods  - overloaded method
%
% gives the available methods for the current object (see subsref)

% Version:  v0.7b
% Build:    7082922
% Date:     Aug-29 2007, 10:22 PM CEST
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% persistent methods
persistent bvqxfile_methods;
if isempty(bvqxfile_methods)
    bvqxfile_methods = BVQXfile(0, 'methods');
end

% default to empty
M = {};

% only valid if not empty
if isempty(S)
    return;
end

% get structed version and lookup
sfile = struct(S);
if ~isempty(sfile)
    try
        sc = bvqxfile_getscont(sfile(1).L);
    catch
        error( ...
            'BVQXfile:InvalidObject', ...
            'Memory of object freed.' ...
        );
    end
end

% get file type and set
stype = lower(sc.S.Extensions{1});

% add methods for this type if any
if isfield(bvqxfile_methods, stype)
    tm = bvqxfile_methods.(stype);
    mf = fieldnames(tm);

    % iterate
    M = cell(numel(mf), 1);
    for mc = 1:length(mf)
        sm = tm.(mf{mc});
        up = find(sm == '_');
        M{mc} = sm(up(1)+1:end);
    end
end

% add AFT methods
tm = bvqxfile_methods.aft;
mf = fieldnames(tm);

% iterate
nM = numel(M);
M{nM + numel(mf)} = ''; 
for mc = 1:length(mf)
    sm = tm.(mf{mc});
    M{nM + mc} = sm(5:end);
end

⌨️ 快捷键说明

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