To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I have this error"Maximum variable size allowed by the program is exceeded" and i do know how i fixed it....
I obtained on this error when I wrote this code:
x1= double(imread('image1.jpg')); [C,S] = wavedec2(x1,1,'db5'); chd2 = wrcoef2('h',C,S,'db5',1); D1=; D1 =[D1 chd2]; [h w] = size(D1) s=2 t = 3; b = 2*t+1; N = h-b+1 M = w-b+1 L = N*M r = [1:s:N] r = [1:s:N] r = [r r(end)+1:N] c = [1:s:M] c = [c c(end)+1:M]
X = zeros(b*b,L,'single')% here, I obtained on the error massage?????
where i can not make zero matrix...
I would like to help me in fixed this error...if this possible??
Thank you very much
No products are associated with this question.
You need to either reduce L somehow, or switch to a 64 bit MATLAB with more than 9 Gb of memory.
Consider whether you algorithm really needs all of those locations.
Consider whether you will have a lot of zeros; if so then sparse matrices might help.
What is it that you are trying to accomplish?
The maximum size of variables can be optained by the command computer. Because your b is small, L must be giantic, such that the internal addressing gets an overflow. Depending on the architecture, this can be at 2^40 (divided by b*b=49...).