I just used Matlab's Neural Network Toolbox to create some functions (.m files that return matrices based on the matrix you put in). I now need to edit the code a little, to modify some details.

But these codes are so large, almost 1 gigabyte, that Matlab tells me it can't open this, because it doesn't have enough memory. (That's what is says in a popup, after trying for a few minutes and printing the error Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space seven times. And this is after I increased the Java heap space memory to 8 GB and restarted Matlab.)

Aware that Notepad++ is a light program designed for writing code in languages such as Matlab, I tried opening it in Notepad++, but it instantly told me, that's too big.

Are these programs not designed to use 64 bits - not even 30 bits - to navigate the bytes of text files? Is there a program that is? What might be a way around this?

  • couldn't you google your question first and state if there was any issue. Is this your question stackoverflow.com/questions/159521/… – barlop Sep 15 '16 at 0:20
  • @barlop Thanks, I think that solves my problem. Should I delete this question? – Post169 Sep 15 '16 at 0:47
  • Even if they are 64-bit versions of those programs, because of the lack of system memory (by the fact you cannot open a 1GB file), won't make any difference if you is 32-Bit or 64-Bit – Ramhound Sep 15 '16 at 1:04
  • @Ramhound The system has 32 GB of memory, and I don't think more than 24 GB was in use at any time. (Less than 15 when I got this error.) It's clearly a problem with the algorithms of the software. – Post169 Sep 15 '16 at 1:06
  • 1GB is nothing, a 32-bit process can open a 3GB file, on a 64-bit OS (and 32-bit. something else is going on, what command, did you use to increase the heap size? – Ramhound Sep 15 '16 at 1:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.