フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

rowsToSwap = [5 6 7]; child1 = pa2; child1(rowsToSwap) = pa1(rowsToSwap); child2 = pa1; child2(rowsToSwap) = pa2(rowsToSwap); make this process in for loop

1 回表示 (過去 30 日間)
Pratik Anandpara
Pratik Anandpara 2016 年 12 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
parent 1--> 0 0 0 0 1 1 0 0 parent 2--> 0 0 0 0 1 0 0 1 child 1--> 0 0 0 0 1 0 0 0 child 2--> 0 0 0 0 1 1 0 1 as like this process in for loop for child 1 & 2 than process for child 3 & 4 ...child 5 & 6 upto 18... (take random 8 digit binary for parent 3 to 18)
  1 件のコメント
Pratik Anandpara
Pratik Anandpara 2016 年 12 月 10 日
for r=1:2:17
child = pa{r+1}
child{r}.(rowsToSwap) = pa{r}.(rowsToSwap)
end

回答 (0 件)

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by