Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: OO matlab - deleting objects
Replies: 6   Last Post: Feb 27, 2013 5:20 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
krindikzulmann@gmail.com

Posts: 8
Registered: 5/18/09
OO matlab - deleting objects
Posted: May 18, 2009 3:19 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Do we have to do explicit memory cleanup in matlab

eg.


%%%%%%%%%%%%%%%%
classdef ContainerModule < Module
methods
function obj = ContainerModule(Fs)

obj.bpfhandle = OSCModule();
end

function delete(obj)

% here
delete(obj.bpfhandle);

end

%%%%%%%%%%%%%%%%



when the object is destroyed isn't the member object delete() method
automatically called?


thanks





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.