If you know a function which is used to create a matrix, you can solve this problem easily !
I thought you referred to the function blkdiag(), but I am surprised to know that it is not the case (for a one-liner)!
2403 Solvers
350 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
513 Solvers
Create a two dimensional zero matrix
355 Solvers
359 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!