+ Reply to Thread
Results 1 to 2 of 2

Returning the diagonal of a matrix as a column vector

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Returning the diagonal of a matrix as a column vector

    As the title suggests, this is what I'm attempting to do. I have 10 fair sized matrices (range from ~800x800 to ~1300x1300) and I need only the diagonal of the matrix. These matrices are variance/covariance matrices, and I just want the diagonal which represents the variances. I would just like it returned in a single column so I can square root it for the standard errors.

    Any help is very much appreciated!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Returning the diagonal of a matrix as a column vector

    You could use a UDF:

    Please Login or Register  to view this content.
    E.g., =STDEV(DisjointRange(A1,B2,800))
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1