Accessing the perference using matlab script
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mayuresh
el 26 de Jun. de 2024
Respondida: Matlab Pro
el 26 de Jun. de 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 comentarios
Respuesta aceptada
Matlab Pro
el 26 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Call Java from MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!