I have a problem about overflowing memory in Matlab. I am working in channel coding using Ludy code. The encoding symbol y is created as following
y=x*G
where G is matrix n-by-m and x is input symbol that size 1-by-n
My problem is that I want to work with number of input symbols is large. Hence, I must allocate a G matrix that its size is very large. However, it occurs overflow memory problem. I am using Matlab 2012a to do it. Could you suggest to me some method to resolve my problem
For example my G matrix is 40000-by-60000
This is my code
function G = gen_matrix(n,m)
G = zeros(n,m);
for i=1:m
d=randi(n/2);
column = [ones(1,d) zeros(1,n-d)];
column = column(randperm(n));
G(:,i) = column';
end
end
This is my memory information
[userview systemview] = memory;
systemview.VirtualAddressSpace
ans =
Available: 1.4074e+14
Total: 1.4074e+14