Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: very specific symmetric matrix
Posted:
Jun 16, 2014 3:31 AM


"Eric" wrote in message <lnlr9p$f3u$1@newscl01ah.mathworks.com>... > "Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <lne84h$19k$1@newscl01ah.mathworks.com>... > > > > > Thanks; Is there some version of blkdiag or something else which allows you to put blocks on the offdiagonals, instead of only main diagonal? > > > > spdiags(), it will creates sparse matrix, but can easity converted to regular matrix using full() > > > > Bruno > > I don't see how that answers my question; I'm talking about taking blocks and placing them on diagonals; while there is a command to place them on the main diag (blkdiag), there doesn't seem to be a straightforward way to play blocks on the offdiagonals.
If your blocks is constant in size, might be you can you kron() combined with spdiags() to accomplish building matrix with the blocks offdiagonals
Bruno



