mcdougallab / matlabneuroninterface

Interface for connecting NEURON and MATLAB
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

73 sections arent being garbage collected #85

Closed edovanveen closed 12 months ago

edovanveen commented 1 year ago

@ramcdougal can I merge this one?

edovanveen commented 12 months ago

@ramcdougal

This seems to work okay:

>> n = neuron.Neuron();
>> axon = n.Section("axon");
>> axon2 = axon;
>> axon.length = 42;
>> axon.length

ans =

    42

>> axon2.length = 72;
>> axon.length

ans =

    72

>> clear axon;
>> axon2.length

ans =

    72

>> n.topology();

|-|       axon(0-1)

>> clear axon2;
>> n.topology();