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 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

148 correct solutions 61 incorrect solutions
Last solution submitted on Oct 03, 2015