suoffset.m
来自「这是一个关于MATLAB的函数」· M 代码 · 共 17 行
M
17 行
function newaddr = suoffset(mm,offset)
%AUOFF - Add an offset to the address and return the new address value
%
% Copyright 2002 The MathWorks, Inc.
% $Revision: 1.4 $ $Date: 2002/03/26 18:26:07 $
if ~isnumeric(offset),
error('Address offset must be a numeric value');
end
offsets = round(double(reshape(offset,[prod(size(offset)) 1])));
newaddr = [mm.address(1)+double(offsets) ones(prod(size(offset)),1)*mm.address(2)];
if any(any((newaddr < 0 | newaddr > mm.maxaddress))),
error('Exceeded absolute limits of address space');
end
%[EOF] suoffset.m
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?