Creation of a matrix (24,72) with unit lower triangular matrix?
6 views (last 30 days)
Show older comments
ET-TAOUSSI mehdi
on 2 Feb 2016
Commented: ET-TAOUSSI mehdi
on 2 Feb 2016
Hello. I want to create a matrix M5(24,72) (see fig) using a unit lower triangular matrix.

0 Comments
Accepted Answer
More Answers (1)
James Tursa
on 2 Feb 2016
Edited: James Tursa
on 2 Feb 2016
Try this (caution, untested):
M5 = zeros(24,72);
M5(:,1:3:end) = tril(ones(24,24));
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!