MathGroup Archive 2004

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

Search the Archive

Re: Extracting Matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45412] Re: Extracting Matrix
  • From: Yasvir Tesiram <tesiramy at omrf.ouhsc.edu>
  • Date: Tue, 6 Jan 2004 04:17:35 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
Here's one way,

X = FlattenAt[CovarianceMatrix/.z)/.MatrixForm->List,1]

Yas

On Mon, 5 Jan 2004, Bruce W. Colletti wrote:

>
> Re Mathematica 5.0 running under WinXP Home.
>
> Am using...
>
>     z = Regress[...RegressionReport->CovarianceMatrix];
>     X = CovarianceMatrix /. z;
>
> ...to 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?
>
> Thankx.
>
> Bruce
>


  • Prev by Date: Re: queueing theory : sample code
  • Next by Date: Palette rememberance
  • Previous by thread: Re: Extracting Matrix
  • Next by thread: Re: Extracting Matrix