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

📄 textline.m

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 M
字号:
function tline = textline(ttext, starts, ends, lnum)
% textline  - one line from a multi-line 1xN char array
%
% FORMAT:       tline = textline(ttext, starts, ends, lnum)
%
% Input fields:
%
%       ttext       1xN char array
%       starts      1xN double array with line start positions
%       ends        1xN double array with line end positions
%       lnum        1x1 double, line number
%
% Output fields:
%
%       tline       line of text
%
% See also asciiread.

% Version:  v0.5c
% Build:    6120415
% Date:     Dec-04 2006, 3:15 PM CET
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% argument check
if nargin < 4 || ...
    length(size(start)) ~= length(size(ends)) || ...
    any(size(starts) ~= size(ends)) || ...
    isempty(lnum(:)) || ...
    lnum(1) > numel(starts) || ...
    lnum(1) < 1
    error( ...
        'BVQXtools:BadArgument', ...
        'Bad or missing argument.' ...
    );
end

% return textline
lnum = fix(lnum(1));
tline = ttext(starts(lnum):ends(lnum));

⌨️ 快捷键说明

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