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 天)
显示 更早的评论
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
2019-4-3
D(D) = C;
would do it without a loop, depending whether you intend column first or row first filling.
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!