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

    function obj = svdata(title, numdatasets)
%SVDATA Constructor for surface viewer data object
%
%  obj = svdata(title,numdatasets)
%
%  numdatasets must be the *possible* number of data sets for this plot
%  type.  The method "hasData" tells us whether we actually have data to
%  plot for each of these.
%
%  Once set, the data stored by this object cannot be changed.

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

%  $Revision $  $Date $

obj = cgsurfview.svdata;

obj.title = title;
obj.values = cell(numdatasets,1);
obj.datasetnames = cell(numdatasets,1);