someStructArray(1:end) = []; clear someStructArray;

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

someStructArray(1:end) = []; clear someStructArray;

Tim Biglow
Please advise whether or not one of the subject statements is better to use than the other; or does it depend on circumstances?
Is there a general best practice (wrt memory/performance efficiency) for emptying a struct array?

Very gratefully yours,
Tim Biglow

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave