cantera/interfaces/matlab/toolbox/@Mixture/clear.m
Ray Speth 258fb8ed57 [Matlab] Add missing 'clear' functions
Without these functions, it was impossible to use these classes
without leaking memory. Even with these functions, the memory is
released only when these functions are explicitly called, as
old-style Matlab classes have no notion of a destructor.

Fixes #252.
2015-04-11 10:54:52 -04:00

8 lines
162 B
Matlab

function clear(m)
% CLEAR Delete the C++ MultiPhase object.
% clear(m)
% :param m:
% Instance of class :mat:func:`Mixture`
%
mixturemethods(1, m.mixindex);