MathGroup Archive 2004

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

Search the Archive

Re: how to 'edit' MatrixForm output to create a new matrix?

In article <bsd51n$r8i$1 at>, nma124 at (steve_H) 

> I want to add a column or a row by editing the MATRIXFORM output
> directly. Not by using a command such as Join.
> As I said, I cut/paste the output of MatrixForm to a new cell, now
> I need to use the mouse and edit that output to insert a row or
> a column right into the MatrixForm representation of the matrix. 

Don't use MatrixForm. If you set your set your Default Output FormType 
to TraditionalForm then matrices are automatically displayed as such and 
everything works as you require. You can copy a row, column, or block of 
a matrix into a new cell and add a new row or column (using a menu 
command or directly as \[ControlKey]-, or \[ControlKey]-\[ReturnKey]) 

If you don't want to do have TraditionalForm as your default FormatType, 
you can just set things up so just matrices are displayed in 
TraditionalForm as follows.

  $PrePrint := If[MatrixQ[#] == True, TraditionalForm[#], #] &

Paul Abbott                                   Phone: +61 8 9380 2734
School of Physics, M013                         Fax: +61 8 9380 1014
The University of Western Australia      (CRICOS Provider No 00126G)         
35 Stirling Highway
Crawley WA 6009                      mailto:paul at 

  • Prev by Date: Re: composing functions
  • Next by Date: Struggling with list element assignment in functions
  • Previous by thread: Re: typesetting fractions
  • Next by thread: Struggling with list element assignment in functions