www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@mdevproject/createDataObject.m

    function [MP, pSSF] = createDataObject(MP)
%CREATEDATAOBJECT Create a new data object and add it to the project list
%
%  pSSF = CREATEDATAOBJECT(MP)
%  

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


% Create a sweepsetfilter object
ssf = create(sweepsetfilter);
% Give it the default name
ssf = set(ssf, 'Label', 'Data Object');
% Assign it a place on the heap
pSSF = xregpointer(ssf);
% And add the new pointer to the project
MP = addData(MP, pSSF);