Feeds
질문
how to generate a random array list with fixed sum ?
this code distributes fixed number in an array list, for exemple we have sum = 10, and the size of the array list is 3 the code...
5년 초과 전 | 답변 수: 1 | 0
1
답변질문
why the while loop with two conditions don't verify the second condition ?
aff=zeros(6,4); s1=sum(aff(1:6,1:4),1); s2=sum(aff(1:6,1:4),2); sol_aff=[6 2 2 2]; m=zeros(6,1); for i=1:6 m(i)=2; en...
거의 6년 전 | 답변 수: 1 | 0