I increased my java heap space memory to more than the value allowed by the slider in the Preferences menu for java heap space with the -Xms1000m command in the JAVA.OPTS file.
I have also placed this file in the MATLABROOT folder as suggested by the solution 1-18I2C.
This command did increase my memory to the desired level which I checked using the command:
java.lang.Runtime.getRuntime.maxMemory
Now, I notice that some text that I have on my plots are rotated the wrong way.
For example the code:
plot(1:10,1:10)text(2,2,'aab','rotation',90)
The expected output should be:
But after adding the JAVA.OPTS file I now am witnessing:
Best Answer