i am using this program but its not working. please gime me any suggestion,,,

1 回表示 (過去 30 日間)
raj singh
raj singh 2013 年 4 月 19 日
clear all clc; A=[1 2 39]; B=[1 2 3 25 30]; C=[4 5 6 8]; D=[5 6 7 11 31]; E=[8 9 39]; F=[10 11 13 32]; G=[6 10 11 12]; H=[10 12 13 14]; I=[4 13 14 15]; J=[16 17 18 27]; K=[16 19 20 33]; L=[21 22 23 35];
z=1; LA=length(A); LB=length(B); LC=length(C); LD=length(D); LE=length(E); LF=length(F); LG=length(G); LH=length(H); LI=length(I); LJ=length(J); LK=length(K); LL=length(L);
for i=1:LA
for j=1:LB
for k=1:LC
for l=1:LD
for m=1:LE
for n=1:LF
for o=1:LG
for p=1:LH
for q=1:LI
for r=1:LJ
for s=1:LK
for t=1:LL
comb(z,:)=[A(1,i) B(1,j) C(1,k) D(1,l) E(1,m) F(1,n) G(1,o) H(1,p) I(1,q) J(1,r) K(1,s) L(1,t)]
z=z+1;
end
end
end
end
end
end
end
end
end
end
end
end
comb

採用された回答

Zhang lu
Zhang lu 2013 年 4 月 19 日
compute_times=length(A)*length(B)*length(C)*length(D)*length(E)*length(F)*length(G)*length(H)*length(I)*length(J)*length(K)*length(L)
Your computer can't afford to calculate such a large number of times .
  4 件のコメント
Zhang lu
Zhang lu 2013 年 4 月 19 日
編集済み: Zhang lu 2013 年 4 月 19 日
But,i am quite sure that you computer's MEMORY is inadequate.
[A,B,C,D,E,F,G,H,I,J,K] = NDGRID(A,B,C,D,E,F,G,H,I,J,K); It can do well . If you add the vector L , it may out of your computer's Memory
raj singh
raj singh 2013 年 4 月 19 日
i m using Acer, core i7. Now i solved my problem with link
thanks for your help.

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

その他の回答 (1 件)

raj singh
raj singh 2013 年 4 月 19 日
means this problem is not possible? pls give me any other suggestion for this program

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by