Effacer les filtres
Effacer les filtres

Accessing the perference using matlab script

32 vues (au cours des 30 derniers jours)
Mayuresh
Mayuresh le 26 Juin 2024 à 9:33
Réponse apportée : Matlab Pro le 26 Juin 2024 à 14:07
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.

Réponse acceptée

Matlab Pro
Matlab Pro le 26 Juin 2024 à 14:07
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);

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by