mcdougallab / matlabneuroninterface

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

73 sections arent being garbage collected #85

Closed edovanveen closed 7 months ago

edovanveen commented 8 months ago

@ramcdougal can I merge this one?

edovanveen commented 7 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();