I tried to get the lower triangular n x n matrix without using any loop or build in function (except size()). is it even possible? I tried something like this:
a(2:end,1)
a(3:end,2)
Unfortunately, this will work only with fix size matrix. any idea?
If
ones()is allowed:If
ones()is not allowed: