Sum of index elements
이전 댓글 표시
Hi, I have a matrix A(641x481) with numbers 0<x<3 and others matrix B,C,D and F with the same size of matrix A. I need create a matrix G, but depending the value of the element in A, the value in G will be the sum of different combinations of B,C, D and F. For example
If A(i,j) < 0.25; so G(i,j) = B(i,j) + C(i,j);
If 0.25< A(r,s)<1; so G(r,s) = B(r,s) + D(r,s);
etc
Thanks
채택된 답변
추가 답변 (1개)
cob
2014년 11월 17일
0 개 추천
댓글 수: 1
Azzi Abdelmalek
2014년 11월 17일
Please delete this answer, and rewrite your comment by clicking on comment on this answer
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!