www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgsumobjective/destroy.m

    function obj = destroy(obj)
%DESTROY Destructor function for object
%
%  OBJ = DESTROY(OBJ) is called before optimization items are cleared.
%  This allows any resources (eg private pointers) to be cleared correctly.

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


% Free the internal weights pointer on deletion
freeptr(obj.Weights);