Community Profile

photo

tlig zied


Last seen: 約4年 前 2020 年からアクティブ

Followers: 0   Following: 0

統計

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...

約4年 前 | 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...

約4年 前 | 1 件の回答 | 0

1

回答