checkerforoffset.m

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

M
21 行
字号
function sv = checkerforoffset(mm,usersSV)
%CHECKERFOROFFSET - private function to verify operations on property OFFSET
%   Copyright 2002 The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 2002/04/03 19:03:02 $

tempI = round(usersSV);
if tempI<0
    error('Bitfield offset cannot be negative.');
end
if strcmp(mm.procsubfamily(1:2),'C6'), % C6x
    if tempI>32
        error('The bitfield offset cannot be greater than an integer size.')
    end
elseif strcmp(mm.procsubfamily,'C54x'), % C54x
    if tempI>16
        error('The bitfield offset cannot be greater than an integer size.')
    end
end
sv = tempI;

% [EOF] checkerforoffset.m

⌨️ 快捷键说明

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