MathGroup Archive 2004

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

Search the Archive

RE: Re: Creating my own cell


The following might be slightly better because it creates an Input cell that
you can then edit.

mx[m_, n_] :=
  StylePrint[ Table[\[Placeholder], {m}, {n}] // MatrixForm, "Input"]

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/

From: Harold Noffke [mailto:Harold.Noffke at wpafb.af.mil]
To: mathgroup at smc.vnet.net


Ken:

This simple library function for creating a m-by-n matrix may be of
help to you.  When you use it in a notebook, all you type, for
example, is "mx[5,8]" to create a 5x8 matrix of placeholders for the
user to instantiate.

(* Display an mxn matrix initialized with placeholders.  The global
values of m,n are not changed. *)
mx[m_,n_] := Table[\[Placeholder], {m}, {n}] // MatrixForm

Regards,
Harold



  • Prev by Date: ReplaceList -- Unexpected Answer
  • Next by Date: RE: simple bug about Sum/Product function?
  • Previous by thread: Re: Creating my own cell
  • Next by thread: DSolve change in v5 -- undocumented error message