I feel like an idiot but I don't seem to be able to solve the following problem:
When I define a handle class, how do I destroy it?
classdef test_class < handle
data = rand(1e4,1e4);
Testing this with
x = test_class;
shows that the class data is effectively destroyed by clear all.
Does anyone know what code to use in the delete function ??
Thanks for you replies