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

91.89% Correct | 8.11% Incorrect
Last solution submitted on Dec 05, 2016
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!

Join the 15-year community celebration.

Play games and win prizes!

Learn more