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)!
401 Solvers
376 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
289 Solvers
Return fibonacci sequence do not use loop and condition
218 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!