Sum of index elements
Show older comments
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
Accepted Answer
More Answers (1)
cob
on 17 Nov 2014
0 votes
1 Comment
Azzi Abdelmalek
on 17 Nov 2014
Please delete this answer, and rewrite your comment by clicking on comment on this answer
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!