Preferences -> General -> Java Heap Memory
Can be increased to up to 8 Gigabytes.
Note: as of R2020a, the editor will refuse to open files of over 128 megabytes.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!