Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Extracting Matrix

  • To: mathgroup at
  • Subject: [mg45384] Extracting Matrix
  • From: "Bruce W. Colletti" <bcolletti at>
  • Date: Mon, 5 Jan 2004 03:50:59 -0500 (EST)
  • Sender: owner-wri-mathgroup at

Re Mathematica 5.0 running under WinXP Home.

Am using...

    z = Regress[...RegressionReport->CovarianceMatrix];
    X = CovarianceMatrix /. z; extract the given matrix. 

However, when I use X[[k,k]] to access the k'th diagonal element, I get 
a row instead!  The culprit is that MatrixForm is the X-head (as 
FullForm reveals).

How can I strip away this head and make X a list of lists?



  • Prev by Date: Interpolating function
  • Next by Date: Re: Mathematica exports curves in pieces to Illustrator
  • Previous by thread: Re: Interpolating function
  • Next by thread: Re: Extracting Matrix