Re: A Method to Simplify Matrix Entry?
- To: mathgroup at smc.vnet.net
- Subject: [mg45119] Re: A Method to Simplify Matrix Entry?
- From: Harold.Noffke at wpafb.af.mil (Harold Noffke)
- Date: Wed, 17 Dec 2003 07:54:35 -0500 (EST)
- References: <brmqpb$ocq$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Thanks for your insight, Hywell. It did not occur to me to reuse
Output Forms for Input. You don't really need a Palette to create a
zeroed input matrix template with m rows and n columns. Here's the
one-liner to do it ...
mtx[m_, n_] := Table[0, {i, 1, m}, {j, 1, n}] // MatrixForm
Here's the test run ...
In[1]:= myInputMatrixTemplate = mtx[3, 2]
Out[1]/MatrixForm=
(0 0)
(0 0)
(0 0)
Thanks.
Harold
-----Original Message-----
From: Owen, HL (Hywel) [mailto:H.L.Owen at dl.ac.uk]
To: mathgroup at smc.vnet.net
Subject: [mg45119] RE: [mg45086] A Method to Simplify Matrix Entry?
You're right that having multiple curly brackets everywhere is a bid
tedious. One of the Palettes (Basic Input) has a 2x2 matrix on it, but
that's pretty limiting.
My way of doing it, which works for square matrices is to execute e.g.
IdentityMatrix[6]//MatrixForm
Copy the output and paste it into a new input line, and - hey presto -
you
have a 6x6 matrix where you can edit the entries - put any other
definitions
around it and it works fine.
I'm sure that you can also do this for non-square matrices, and create
your
own palettes, but I've never bothered myself!
Hywel
Harold.Noffke at wpafb.af.mil (Harold Noffke) wrote in message news:<brmqpb$ocq$1 at smc.vnet.net>...
> The basic Mathematica system requires a list format for making matrix
> entries which is more cumbersome and harder to understand than
> some other system's notation. Has anyone written a Mathematica Method to
> simplify matrix entry?
>
> Thanks.
> Harold