Azzera filtri
Azzera filtri

Accessing the perference using matlab script

32 visualizzazioni (ultimi 30 giorni)
Mayuresh
Mayuresh il 26 Giu 2024 alle 9:33
Risposto: Matlab Pro il 26 Giu 2024 alle 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.

Risposta accettata

Matlab Pro
Matlab Pro il 26 Giu 2024 alle 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);

Più risposte (0)

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by