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

6 views (last 30 days)
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).

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 30 Mar 2014
Edited: Azzi Abdelmalek on 30 Mar 2014
v1=sum(R(:))

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!