Azzera filtri
Azzera filtri

code for summation(i= 1 to m) sum(j=1 to n) R(i,j).

4 visualizzazioni (ultimi 30 giorni)
for loop(i=1 to m) for loop (j=1 to n) initially v1 is zero R(i,j) (representing first pixel value of R component of RGB color image) (How to perform, sum of all values from R(1,1)+ R(1,2)+R(1,3)..... to R(m,n)) (take result value (summation) in v1).

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 30 Mar 2014
Modificato: Azzi Abdelmalek il 30 Mar 2014
v1=sum(R(:))

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by