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!