Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 2235. Back to basics - mean of corner elements of a matrix

Created by Swapnali Gujar

Calculate the mean of corner elements of a matrix.

e.g. a=[1 2 3; 4 5 6; 7 8 9;]

Mean = (1+3+7+9)/4 = 5

Problem Group

Solution Statistics

86 correct solutions 31 incorrect solutions
Last solution submitted on Jul 22, 2016