www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgrangeconstraint/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 2006 The MathWorks, Inc. % Free the internal pointers on deletion freeptr(obj.LowerBound); freeptr(obj.UpperBound); freeptr(obj.pMinVector); freeptr(obj.pMaxVector);