aft_filetype.m

来自「toolbox of BVQX, This is the access betw」· M 代码 · 共 36 行

M
36
字号
function ftype = aft_Filetype(hfile)
% AFT::FileType  - method for any BVQXfile type
%
% FORMAT:       filetype = obj.Filetype;
%
% No input fields:
%
% Output fields:
%
%       filetype    type of object

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

% only valid for single file
if nargin < 1 || ...
    numel(hfile) ~= 1 || ...
   ~isBVQXfile(hfile, true)
    error( ...
        'BVQXfile:BadArgument', ...
        'Invalid call to %s.', ...
        mfilename ...
    );
end

% get file type
try
    sc = bvqxfile_getscont(hfile.L);
    ftype = sc.S.Extensions{1};
catch
    ftype = 'BAD';
end

⌨️ 快捷键说明

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