Creation of a matrix (24,72) with unit lower triangular matrix?

 Respuesta aceptada

Más respuestas (1)

James Tursa
James Tursa el 2 de Feb. de 2016
Editada: James Tursa el 2 de Feb. de 2016
Try this (caution, untested):
M5 = zeros(24,72);
M5(:,1:3:end) = tril(ones(24,24));

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Preguntada:

el 2 de Feb. de 2016

Comentada:

el 2 de Feb. de 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by