📄 checkerforsuperval.m
字号:
function sv = checkerforsuperval(mm,usersSV)
%CHECKERFORSUPERVAL - private function to verify operations on property STORAGEUNITSPERVAL
% Copyright 2002 The MathWorks, Inc.
% $Revision: 1.4 $ $Date: 2002/03/15 15:36:37 $
if strcmp(mm.procsubfamily(1:2),'C6')
totalBytes = round((usersSV * mm.bitsperstorageunit)/8);
if totalBytes > 8,
error('''C6x Numeric values are limited to a maximum of 64 bits (8 bytes)');
return;
end
elseif strcmp(mm.procsubfamily,'C54x') & totalBytes > 2,
totalBytes = round((usersSV * mm.bitsperstorageunit)/16);
if totalBytes > 2,
error('''C54x Numeric values are limited to a maximum of 32 bits (2 bytes)');
return;
end
end
if totalBytes < 1,
error('Numeric bit sizes are limited to byte increments (8,16,24,etc)');
return;
end
sv = round(usersSV);
mm.wordsize = (sv * mm.bitsperstorageunit) - mm.postpad - mm.prepad;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -