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

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

69 correct solutions 36 incorrect solutions
Last solution submitted on Jul 14, 2014