Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8274

Input cells destroy Grids?

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!novia!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Mark Green <p0073857@brookes.ac.uk>
Newsgroups comp.soft-sys.math.mathematica
Subject Input cells destroy Grids?
Date Wed, 1 Feb 2012 08:51:54 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <jgaufa$esh$1@smc.vnet.net> (permalink)
Reply-To comp.soft-sys.math.mathematica@googlegroups.com
Lines 12
NNTP-Posting-Date 01 Feb 2012 08:52:37 GMT
NNTP-Posting-Host 14bfeda0.news.twtelecom.net
X-Trace DXC=^DdD28M1BmLVlR\GJTaT@HC_A=>8kQj6MhHXa^^g6TZD8IIjUcfRX`@EFiONJ7[GoFc1kmTA83[UA
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:8274

Show key headers only | View raw


I'm trying to make a slide which will allow students to insert arbitrary numbers into a matrix multiplication, and have gotten this:

incel = {1, 2, 3, 4};
matrix = {{1, 0, 0, 0}, {0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}};
Style[Grid[{{MatrixForm[incel, TableDirections -> Row],
    ""}, {InputField[MatrixForm[matrix]], MatrixForm[incel.matrix]}}],
  FontSize -> 40]

It looks fine if I remove the InputField call, but with it in there, the input field takes up the entire width of the notebook, ignoring the fact there's supposed to be a grid cell to the right of it. Also, I have a feeling this won't work in FreeCDF because the input is of a matrix, not a number.

Is there a better way of doing this that inputs only numbers and that fits in a grid?

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Input cells destroy Grids? Mark Green <p0073857@brookes.ac.uk> - 2012-02-01 08:51 +0000
  Re: Input cells destroy Grids? A Retey <awnl@gmx-topmail.de> - 2012-02-02 10:04 +0000
    Re: Input cells destroy Grids? Mark Green <p0073857@brookes.ac.uk> - 2012-02-07 09:05 +0000
      Re: Input cells destroy Grids? A Retey <awnl@gmx-topmail.de> - 2012-02-11 20:48 +0000

csiph-web