Matlab 7.1 (R14SP3) bug : “Maximum variable size allowed by the program is exceeded”
After upgrading to SP3, my Matlab codes simply stopped working. By looking into the error, I found out that it is a bug that existed in version 6 but was later fixed in version 7 (sp1, sp2).
Exact Steps and Code to Reproduce Bug:
test = zeros([402653185,1],'uint8');
% It worked if you change to 402653184
Error Messages:
??? Error using ==> zeros
Maximum variable size allowed by the program is exceeded.
Anyway, the Matlab support team gave me a workaround: create two matrix of smaller sizes and concat them together.
test1 = zeros([3e8,1],'uint8');
test = [test1 ; test1];
clear test1;
For me, I don’t want to modify all my codes, so I had to revert back to R14SP2. Hopefully the next version of Matlab could fix this bug.
June 14th, 2007 at 6:57 am
This is a damn annoying bug.
August 8th, 2007 at 6:19 am
Well I just discovered this bug…
Is it possible?
January 30th, 2011 at 11:34 am
I know this if off topic but I’m looking into starting my own weblog and was curious what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web smart so I’m not 100% sure. Any suggestions or advice would be greatly appreciated. Thank you
April 7th, 2011 at 2:48 pm
Clever blog!
April 16th, 2011 at 12:10 am
Bardzo mnie to zaciekawiło,będę tu zaglądać