www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@scrollTable/pDataIsArray.m

    function ret = pDataIsArray(obj, data)
%PDATAISARRAY Check whether data model is an array or not.
%
%   RET = PDATAISARRAY(OBJ) returns true if the table's main data model is
%   an array.
%
%   RET = PDATAISARRAY(OBJ, DATA) returns true if the specified data model
%   is an array.

%   Copyright 2006 The MathWorks, Inc.


if nargin==1
    data = obj.MainData;
end

% Object data should inherit from scrollTableData
ret = ~isa(data, 'mbcwidgets.scrollTableData');