Maximum variable size allowed by the program is exceeded.

I want generation of codes. My program is:
Q=6;
niu=9;
K=niu+1;
Nx=Q^K;
Vk=zeros(Nx,K);
for j=1:1:K
t=1;
for i=1:1:Nx
Vk(i,j)=mod((Vk(i,j)+(t-1)),Q);
a=Q^(j-1);
if mod(i,a)==0
t=t+1;
end;
end;
end;
Vk
It mean my massive size is 6^11X11 Can I split massive in circle? Help me please!!!

 採用された回答

Sean de Wolski
Sean de Wolski 2014 年 12 月 23 日
編集済み: Sean de Wolski 2014 年 12 月 24 日

0 投票

That array will require:
8*11*6^11
ans =
3.1926e+10
Just under 32gb. To do anything with it will require a copy or few. You could either, use a smaller array, work on pieces at a time, buy more ram, or use distributed arrays on a cluster.

3 件のコメント

Marika
Marika 2014 年 12 月 24 日
Thanks, but my massive's number of rows're 6^11 and columns 11 That's my problem
Sean de Wolski
Sean de Wolski 2014 年 12 月 24 日
Actually, I just gave you the number of elements above, not the memory requirements. See edit.
What are you doing? Tell us that and we can maybe help you work around this. But you're not going to be able to hold that array on a computer unless you have at minimum 32 Gb or RAM.
Marika
Marika 2016 年 1 月 4 日
New my problem is the following: running files, processors cores are not load fully. How to increase the speed? P.S. I bought a powerful computer.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Coder についてさらに検索

タグ

質問済み:

2014 年 12 月 23 日

コメント済み:

2016 年 1 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by