Cody

Problem 2533. Find Out sum of principal diagonal element of given matrix

Find out sum of principal diagonal element of given matrix

If A=[1 0 0; 0 1 0;0 0 1], then answer must be 3.

Solution Stats

93.48% Correct | 6.52% Incorrect
Last solution submitted on Nov 10, 2017
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!