I am trying to make a demonstration that can take in a matrix and create a vector field. Currently I have the demonstration all functioning but to define the matrix it uses sliders. I know they cannot be used to to define strings within manipulate but numbers can. if possible it would be nice to be able to put the inputfields in a 2x2 grid. currently I have:
Manipulate[value[a, b, c, d, e, f, g, h, i],
Style["Matrix values", 12, Bold],
{a, -10, 10, 1},
{b, -10, 10, 1},
{c, -10, 10, 1},
{d, -10, 10, 1},
{{e, -10, "x-min"}, -20, 0, 1},
{{f, 10, "x-max"}, 0, 20, 1},
{{g, -10, "y-min"}, -20, 0, 1},
{{h, 10, "y-max"}, 0, 20, 1},
{{i, 5, "Solutions"}, 0, 50, 1}]
I would like a,b,c,d to be input boxes so I can put in a 2x2 matrix. If anyone could help that would be great. I think it would use InputField Function and the Dynamic function. THANKS!!!
Ok, so I have figured one big thing out. instead of:
{a,-10,10,1}
(this defines a slider of range -10 to 10 with a step of 1) replace the numbers with InputField
{a,InputField}
and then you can replace a with different names and a value seen on my e-i variables I still can't find out how to make it look like a 2x2 matrix.
a b
c d
instead of a
b
c
d
Comments
Post a Comment