フィルターのクリア

Info

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

Both are arrays and i need to fill those 1 values in D variable in sequence with the values in C How can i use for loop and conditional statement to make if happen

1 回表示 (過去 30 日間)
gowtham munuswami reddy
gowtham munuswami reddy 2019 年 4 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
C =
0.3400
0.2500
0.3300
0.3300
0.2200
0.5600
>> D
D =
0 1 1
0 1 1
1 1 0
  2 件のコメント
Adam
Adam 2019 年 4 月 3 日
D(D) = C;
would do it without a loop, depending whether you intend column first or row first filling.
Jos (10584)
Jos (10584) 2019 年 4 月 3 日
and D(D==1) = C will work when D is not a logical array

回答 (0 件)

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

Community Treasure Hunt

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

Start Hunting!

Translated by