If you are using 32 bits Window XP, Vista and Window 7, the default memory loaded in Matlab is 2GB. You can try to extend it by using the following: 1) Run the command in administrator: 2) > BCDEdit /set increaseuserva 3072 Restart the computer and matlab.