Persistent Example - Loading Data Only When Needed

Working with persistent variables.
22 descargas
Actualizado 26 abr 2018

Ver licencia

This example demonstrates how to use persistent variables when loading data in a function. Doing things this way guarantees that the "data" value in "persistentFunction" is only loaded or changed when necessary.
This is very useful in cases such as:
- "data" is large and loaded from a network location. Network locations are not as fast as locally saved data.
- The data is large and doesn't change much from call to call of "persistentFunction"

Citar como

Jason Nicholson (2024). Persistent Example - Loading Data Only When Needed (https://www.mathworks.com/matlabcentral/fileexchange/67076-persistent-example-loading-data-only-when-needed), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2006a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Deployable Archive Creation en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.1.0.0

Better documentation.
Embedding of persistentFunction html still didn't work. Maybe it will work this time.
I had to hack the HTML because Mathworks doesn't render embeded iframe tags correctly. The persistentFunction HTML was put inline in the persistentExample

1.0.0.0