Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11131
| From | tkloecker@googlemail.com |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Manipulate with Matrices |
| Date | 2012-07-31 02:15 +0000 |
| Message-ID | <jv7f4b$1el$1@smc.vnet.net> (permalink) |
| References | <iatt2b$egc$1@smc.vnet.net> |
| Organization | Time-Warner Telecom |
With[{rows = 3, cols = 3, fieldSize = 5},
Manipulate[
Column[{TableForm@arr, Row[{"det = ", Det[arr]}]}]
, {arr, None}
, {initialized, None}
, Row[{" column"}]
, Evaluate@With[{
makeRow = Function[{rowIndex},
Join[{Row[{rowIndex, Spacer[4]}]},
Map[Function[{colIndex},
InputField[Dynamic[arr[[rowIndex, colIndex]]], Number,
FieldSize -> fieldSize, Enabled -> True]], Range[cols]]]
, HoldAll
]
},
Grid[Join[
{Join[{"row"}, Range[cols]]}
, Map[makeRow, Range[rows]]
]]
]
, Initialization :> (
If[Not[initialized === True], arr = Table[0, {rows}, {cols}]];
initialized = True )
, SaveDefinitions -> True
]
]
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Manipulate with Matrices tkloecker@googlemail.com - 2012-07-31 02:15 +0000
csiph-web