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

📄 checkerforsuperval.m

📁 这是一个关于MATLAB的函数
💻 M
字号:
function sv = checkerforsuperval(nn,usersSV)
%CHECKERFORSUPERVAL - private function to verify operations on property STORAGEUNITSPERVALUE
% Copyright 2002 The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 2002/03/26 20:38:33 $

if strcmp(nn.procsubfamily(1:2),'C6')
    totalBytes = round((usersSV  * nn.bitsperstorageunit)/8);
    if totalBytes > 8,
        error('''C6x memory bit sizes are limited to increments of 8 (8,16,24,...)');
        return;
    end
elseif strcmp(nn.procsubfamily,'C54x') 
    totalBytes = round((usersSV  * nn.bitsperstorageunit)/16);    
    if totalBytes > 2,
        error('''C54x memory bit sizes are limited to increments of 16 (16,32,...)');
        return;
    end
end

if totalBytes < 1,
    error('Numeric bit sizes are limited to byte increments (8,16,24,etc)');
    return;
end

sv = round(usersSV);
nn.wordsize = (sv  * nn.bitsperstorageunit);
nn.numberofstorageunits = sv*prod(nn.size);

⌨️ 快捷键说明

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