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

New to MATLAB?

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

Created by Pritesh Shah

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.

Tags

Problem Group

Solution Statistics

36 correct solutions 3 incorrect solutions
Last solution submitted on May 16, 2015