write.m

来自「这是一个关于MATLAB的函数」· M 代码 · 共 27 行

M
27 行
字号
function resp = write(bb,index,data)
%   Copyright 2002 The MathWorks, Inc.

error(nargchk(2,3,nargin));
if ~ishandle(bb),
    error('First Parameter must be a BITFIELD Handle.');
end
if nargin==2,   
    data = index;
elseif nargin==3 & isempty(index)
    index = 1;
end

if iscellstr(data) | ischar(data),
    if nargin==2,   write_bitfieldhex(bb,data);
    else            write_bitfieldhex(bb,index,data);
    end
elseif isnumeric(data),
    if nargin==2,   write_bitfield(bb,data);
    else            write_bitfield(bb,index,data);
    end
else
    error('DATA must be a numeric array or a hexadecimal string (cell array) ');
end

% [EOF] write.m

⌨️ 快捷键说明

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