MATLAB: Out of memory error on 32-bit student MATLAB for Mac

MATLABmemory

Hi,
I am using the student version of MATLAB 2010a (32-bit) for Mac on my four core machine with 8GB of RAM. When I try to run the following commands:
omega = rand(1,20000);
time = linspace(1, 7200, 9171);
omega_matrix = time'*omega;
I get this message: "Out of memory. Type HELP MEMORY for your options."! However, when I run these same commands on another, much older machine with two cores and 4GB of RAM, the calculations are performed in a couple of seconds with no error message. The older machine has regular MATLAB 2009b (64-bit) for Mac. I am guessing that the limiting factor in my student version is the fact that it is 32-bit. Is there a way that I can modify this script to run on my 32-bit student version? Thank you very much for your assistance.
Regards,
Martin

Best Answer

Try
omega = rand(1,20000,'single');
time = linspace(single(1), single(7200), 9171);
omega_matrix = time'*omega;
That saves a lot of memory