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

📄 suoffset.m

📁 这是一个关于MATLAB的函数
💻 M
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -