I need a code to create a lower triangular matrix consisting of several submatrices, where each submatrix has its own coordinates [between (xi_0,yi_0) and (xi_f,yi_f)] without any use of for loop.
i.e. Submatrices A, B and C are each 3x3 matrices. I want to create a D matrix as: [A zeros(3x3);B C]
There is nothing wrong with loops, especially when having to index into a variable. You should never label variables like A1, A2, A3, ......, A100, but rather store then into an array that can be indexed.