help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

block version of diag function


From: John W. Eaton
Subject: block version of diag function
Date: Thu, 06 Mar 2008 12:47:30 -0500

On  6-Mar-2008, Kamaraju S Kusumanchi wrote:

| 2) Is there any way to assemble a set of blocks along the diagonals of a
| bigger matrix.
| 
| For example if the inputs are
| 
| 1 2
| 5 6
| 
| and
| 
| 11 12
| 15 16
| 
| I would like to assemble these matrices along the diagonal and get
| 
|  1  2  0  0
|  5  6  0  0
|  0  0 11 12
|  0  0 15 16

Try

  help blkdiag

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]