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)!
722 Solvers
17535 Solvers
Back to basics 12 - Input Arguments
528 Solvers
Find nearest prime number less than input number
277 Solvers
Reverse the elements of an array
704 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!