Persistent Example - Loading Data Only When Needed

버전 1.1.0.0 (7.62 KB) 작성자: Jason Nicholson
Working with persistent variables.
다운로드 수: 22
업데이트 날짜: 2018/4/26

라이선스 보기

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"

인용 양식

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. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Deployable Archive Creation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
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