I found this code snippet in stackoverflow to display fullscreen color in MATLAB: Remove title bar from MATLAB GUI for fullscreen display
The problem is that as soon as I run the program 5 times, an error message appears:
??? Java exception: java.lang.OutOfMemoryError: heap Java space ".
Now I could increase the heap of space as described here
But since my application has to work for long periods of time, is there a way I can clear the heap every time I run the script? That way, I wonβt need to allocate more memory and eventually it will end.
source share