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

📄 prt_conditionnames.m

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 M
字号:
function cnames = prt_ConditionNames(hfile)
% PRT::ConditionNames  - return a cell array (Nx1) of condition names
%
% FORMAT:       cnames = prt.ConditionsNames;
%
% No input fields.
%
% Output fields:
%
%       cnames      Nx1 list with condition names

% Version:  v0.7b
% Build:    7090213
% Date:     Sep-02 2007, 1:26 PM CEST
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% argument check
if nargin < 1 || ...
    numel(hfile) ~= 1 || ...
   ~isBVQXfile(hfile, 'prt')
    error( ...
        'BVQXfile:BadArgument', ...
        'Invalid call to %s.', ...
        mfilename ...
    );
end
bc = bvqxfile_getcont(hfile.L);

% build cell array
cnames = cell(numel(bc.Cond), 1);

% fill array
for cc = 1:length(cnames)
    cnames{cc} = bc.Cond(cc).ConditionName{1};
end

⌨️ 快捷键说明

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