Accessing the perference using matlab script

12 Ansichten (letzte 30 Tage)
Mayuresh
Mayuresh am 26 Jun. 2024
Beantwortet: Matlab Pro am 26 Jun. 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.

Akzeptierte Antwort

Matlab Pro
Matlab Pro am 26 Jun. 2024
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);

Weitere Antworten (0)

Kategorien

Mehr zu Call Java from MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by