Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: How to use BlockMatrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73116] [mg73116] Re: [mg73082] How to use BlockMatrix
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Sat, 3 Feb 2007 05:12:25 -0500 (EST)
  • References: <200702010859.DAA11554@smc.vnet.net>

On Feb 1, 2007, at 3:59 AM, T.Sariyski wrote:

> Hi,
> I want to use BlockMatrix. Here is an example:
>
> a11={a0};
> a12={a1,a2};
> a21={a3,a4};
> a22={{i,j},{k,l}};
> BlockMatrix[{{a1,a12},{{a21},a22}}]//MatrixForm
>
> Out:
> AppendColumns[AppendRows[a1,{a1,a2}],AppendRows[{{a3,a4}},{{i,j}, 
> {k,l}}]]
>
> What I'm doing wrong here?

You submatrices have the wring dimensionality, and I suspect you want  
a11 not a1 in your BlockMatrix expression.

This works,

In[351]:=
a11={{a0}};
a12={{a1,a2}};
a21={{a3},{a4}};
a22={{i,j},{k,l}};
BlockMatrix[{{a11,a12},{a21,a22}}]//MatrixForm

Is that what you wanted?

Regards,

Ssezi


  • Prev by Date: Re: Root finding of multivariable nonlinear equations
  • Next by Date: Re: Re: rather complicated NonlinearFit
  • Previous by thread: How to use BlockMatrix
  • Next by thread: Re: How to use BlockMatrix