www.gusucode.com > mbc 工具箱 matlab 源码程序 > mbc/@mbcmodel/@data/Value.m
function dblValue = Value(D, varNames, sweepNums) %VALUE Get the double data from a data object. % % VALUES = VALUE(D, VARNAMES, SWEEPNUMS) % Copyright 2004-2007 The MathWorks, Inc. if nargin < 2 varNames = ':'; end if nargin < 3 sweepNums = ':'; end try % Get a sweepset of the data ss = sweepset(D.Object); % Index the sweepset and convert to dblValue = double(ss(:, varNames, sweepNums)); catch E [mnemonic, component] = mbcGetLastError(E); switch [component ':' mnemonic] case 'sweepset:InvalidIndex' error('mbc:mbcmodel:data:InvalidIndex18', E.message); otherwise error(message('mbc:mbcmodel:data:UnknownError15')); end end