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
Report Content as Inappropriate

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]