Accessing the perference using matlab script
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mayuresh
le 26 Juin 2024
Réponse apportée : Matlab Pro
le 26 Juin 2024
I want to get the Current value that is set for 'MATLAB General Java Heap Memory Preferences' from the Preferences >> General >> MATLAB General Java Heap Memory Preferences tab. 

0 commentaires
Réponse acceptée
Matlab Pro
le 26 Juin 2024
HI @Mayuresh
The next code line will do the works..
prefFile = fullfile(prefdir,'matlab.prf');
txt = fileread(prefFile);
re = regexp(txt,'JavaMemHeapMax=I(?<heapSize>\d+)','names');
heapSize = eval(re.heapSize);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Call Java from MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!