Summation Equation in matlab code

Illustration
Zachary - 2020-11-02T12:18:16+00:00
Question: Summation Equation in matlab code

How can I write this summation equation in matlab ? N is the number of pixel in the image

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

Assuming C,µ are vectocrs of the length number of pixels in the image(N)

 

sigma = (1/N)*sum(C.^2-mu.^2);


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!