Sum of index elements
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
cob
am 17 Nov. 2014
0 Stimmen
1 Kommentar
Azzi Abdelmalek
am 17 Nov. 2014
Please delete this answer, and rewrite your comment by clicking on comment on this answer
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!