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

📄 clearbvqxobjects.m

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 M
字号:
function clearbvqxobjects(olist)
% clearbvqxobjects  - issue ClearObject call on several objects
%
% FORMAT:       clearbvqxobjects(olist)
%
% Input fields:
%
%       olist       cell array with BVQXfile objects
%
% No output fields

% Version:  v0.7a
% Build:    7082721
% Date:     Aug-27 2007, 9:22 AM CEST
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% argument check
if nargin ~= 1 || ...
   (~iscell(olist) && ...
    ~isa(olist, 'double') && ...
    ~isa(olist, 'BVQXfile')) || ...
    isempty(olist)
    return;
end

% for cell array iterate over cells
if iscell(olist)
    
    % prepare double list for alternative calling syntax
    nlist = ones(1, numel(olist));
    alist = [];
    for c = 1:numel(olist)
        if isBVQXfile(olist{c})
            sfile = struct(olist{c});
            if numel(sfile) == 1
                nlist(c) = sfile.L;
            else
                ac = numel(alist);
                alist = [alist, zeros(1, numel(sfile))];
                for sc = 1:numel(sfile)
                    alist(ac + sc) = sfile(sc).L;
                end
            end
        end
    end
    
    % clear objects
    if ~isempty(alist)
        nlist = [nlist, alist];
    end
    BVQXfile(0, 'clearobj', nlist);
    
% for double array
elseif isa(olist, 'double')
    BVQXfile(0, 'clearobj', olist);
        
% for BVQXfiles
else
    clearbvqxobjects({olist});
end

⌨️ 快捷键说明

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