how do i print this matrix?
Show older comments
hi!
i want to print this matrix..
i think there is a easy pattern in this matrix but i couldn't found..!
Is there a easy way to create this matrix?

Accepted Answer
More Answers (1)
M = repelem([1,1;1,0;0,1],[1,2,3],[3,2])
Categories
Find more on Logical 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!