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

📄 end.m

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 M
字号:
function es = end(A,K,N)
% transio::end  - overloaded method

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

% check arguments
if nargin < 3
    error( ...
        'transio:TooFewArguments', ...
        'Too few arguments for end.' ...
    );
end

% get size
csz = A.DataDims;
csl = length(csz);

% check N
if  N ~= 1 && ...
    N ~= csl
    error( ...
        'transio:BadArgument', ...
        'Invalid end call.' ...
    );
end

% for N := 1
if N == 1
    es = prod(csz);
    
% otherwise go index
else
    if  K < 1 || ...
        K > N
        error( ...
            'transio:BadArgument', ...
            'Invalid end call.' ...
        );
    end
    es = csz(K);
end

⌨️ 快捷键说明

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