Comparing the two matrices
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
H is my matrix with 18*36 and there is another position matrix defining the position of one's in H matrix let say B. Now i have another new matrix let say L of same size with H matrix filled of integers So,I need to assign the value of L in the position of ones's in H matrix
댓글 수: 1
James Tursa
2015년 9월 15일
편집: James Tursa
2015년 9월 16일
Please clarify what B contains. Is it the same size as H? Does it contain index numbers? Or what? A short example would help.
답변 (1개)
James Tursa
2015년 9월 15일
Not sure what B is. But if you want to replace the 1's in H with numbers from L, then
x = (H == 1);
H(x) = L(x);
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!