Diagonal matrix Constructs a diagonal matrix. Syntax diagonal_matrix(List | Range | Vector) diagonal_matrix(Integer, Expression) Description diagonal_matrix(List | Range | Vector) Given a list, range or vector , constructs a diagonal matrix with the elements of in the diagonal. diagonal_matrix(Integer, Expression) Given an integer and an expression , constructs a diagonal matrix of dimension with coefficients equal to . Related functions Constant matrix, Canonic vector Table of Contents Syntax Description Related functions