Results 1 to 2 of 2

Math Help - matlab, diagonal of diagonal

  1. #1
    Senior Member
    Joined
    Jun 2009
    Posts
    251

    matlab, diagonal of diagonal

    what does
    Code:
    diag(A), diag(diag(B))
    do?
    I know that the first part takes the diagonal of matrix A and displays it as a vector, and the second part takes the result from the first part and does the same process again. But why for the second part it seems to criss cross the results?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by superdude View Post
    what does
    Code:
    diag(A), diag(diag(B))
    do?
    I know that the first part takes the diagonal of matrix A and displays it as a vector, and the second part takes the result from the first part and does the same process again. But why for the second part it seems to criss cross the results?
    >help diag

    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: October 14th 2011, 08:40 AM
  2. The Diagonal
    Posted in the Advanced Algebra Forum
    Replies: 2
    Last Post: February 16th 2010, 12:18 AM
  3. Replies: 0
    Last Post: October 15th 2008, 04:05 AM
  4. diagonal
    Posted in the Algebra Forum
    Replies: 1
    Last Post: September 22nd 2008, 05:14 PM
  5. Diagonal
    Posted in the Geometry Forum
    Replies: 1
    Last Post: January 7th 2008, 02:04 AM

Search Tags


/mathhelpforum @mathhelpforum