Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

how to write equation in matlab

Asked by Elysi Cochin on 24 Jan 2013

please can some help me write the equations below in matlab.... in the following link....

please do reply.....


Elysi Cochin


No products are associated with this question.

1 Answer

Answer by Walter Roberson on 24 Jan 2013
Accepted answer

If I read the equation correctly, then Imu and Isigma do not depend on the x and y parameters and are instead the same for all rows and columns.

Imu = mean2(f)
Isigma = std(f(:), 1);   %the biased standard deviation


Elysi Cochin on 6 Feb 2013

sir like mean2 function is there any function to calculate "variance"..... is variance and standard deviation the same??? please do reply sir.....

Walter Roberson on 6 Feb 2013
Isigma = var(double(f(:)), 1);
Elysi Cochin on 6 Feb 2013

thank u sir...

Walter Roberson

Contact us