Is it possible to assign a table to a function for speed up?
Ältere Kommentare anzeigen
In Maple (for example) it is possible to assign a table to a function in which outputs are collected during running, and can be used to speed up calculatios when we run the function twice or more times with the same argument(s). Are there anything like this in MATLAB?
1 Kommentar
Mr M.
am 18 Jul. 2017
Antworten (2)
Walter Roberson
am 18 Jul. 2017
0 Stimmen
No. However starting in R2017a see memoize().
Jonathan A
am 9 Okt. 2019
0 Stimmen
It is maybe a little bit late, but I implemented a class that encapsulates the functionnality of cachedcall. The class builds the dependency DAG of all functions and computes only the necessary ones. This allows to spare a lot of time in my current scientific workflow. Hope this helps.
Kategorien
Mehr zu Whos finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!