www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@svdata/hasData.m

    function h = hasData(obj)
%HASDATA Indicates which data sets are supplied
%
% h = obj.hasData
%
% h is a logical array with one element for each data set.
% If the element in h is false, the data set is empty.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


h = ~cellfun('isempty',obj.values);