Persistent Counters

Create counters that keep their values even if your functions are interrupted for some reason.
770 Downloads
Updated 21 Apr 2005

No License

The intention of the persistent counter functions is to create integer counters that are persistent even if your function is interrupted in any way, or if you want to contine a computation after restarting MATLAB. They are nice when you have large computations within a loop which has to be interrupted.

It can for example be used if you are processing a large number of files, and need to keep track of which files that have been completed, so the job can be continued at a later stage.

Cite As

Jøger Hansegård (2024). Persistent Counters (https://www.mathworks.com/matlabcentral/fileexchange/7483-persistent-counters), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Startup and Shutdown in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0