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 1798. 03 - Matrix Variables 2

Created by Samuel Thrys√łe

Make the following variable:

A 9x9 matrix of zeros, but with the following values on the main diagonal:

(Hint: use diag)

Problem Group

Solution Statistics

168 correct solutions 66 incorrect solutions
Last solution submitted on Jun 22, 2016