Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8095 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-01-22 12:33 +0000 |
| Last post | 2012-01-22 12:33 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: MatrixFormWrapper vs. MatrixForm Bob Hanlon <hanlonr357@gmail.com> - 2012-01-22 12:33 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-01-22 12:33 +0000 |
| Subject | Re: MatrixFormWrapper vs. MatrixForm |
| Message-ID | <jfgvmh$pmp$1@smc.vnet.net> |
Why use something that is MatrixForm-like? Use MatrixForm
(A = IdentityMatrix[3]) // MatrixForm
(A = IdentityMatrix[3]) // MatrixForm;
Bob Hanlon
On Sat, Jan 21, 2012 at 5:15 AM, roby <roby.nowak@gmail.com> wrote:
> Hi all,
>
> what about the following construct ?
>
> In[1]:= MatrixFormWrapper[M_] := BoxData@RowBox[{"(", GridBox[M],
> ")"}] //
> (NotebookWrite[SelectedNotebook[], Cell[#, "Output"]]; M) &
>
> In[2]:= A = IdentityMatrix[3] // MatrixFormWrapper;
>
>
> gives a pretty MatrixForm like output:
> ( {
> {1, 0, 0},
> {0, 1, 0},
> {0, 0, 1}
> } )
>
> In[3]:= A
>
> Out[3]= {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}
>
> The only pitty with this is that one cannot use output suppression by
> a semicolon,
> any clou how this could be fixed ?
>
>
> Cheers Robert
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web