Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Checking dynamically updated variable' topicStudent Support Forum > General > Archives > "Checking dynamically updated variable"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
01/10/13 4:15pm

In Response To 'Re: Checking dynamically updated variable'
---------
See if this works for you:

k2 = {1, 2, 3};
k4 = {4, 5, 6};

Grid[{{"k2", InputField[Dynamic[k2]]}, {"k4",
InputField[Dynamic[k4]]}}]

Graphics3D[{{Black, Dashed, Thick,
Line[{{1, 0, 0}, {0, 0, Min[0, k2[[3]], k4[[3]]]}}]}}] // Dynamic

You had both k2 and k4. They need to be initialized or the Graphics3D will produce an error message. You also had only one point in the Line. You need at least two points to see one.

URL: ,

Subject (listing for 'Checking dynamically updated variable')
Author Date Posted
Checking dynamically updated variable PhysicsGuy 01/08/13 10:18pm
Re: Checking dynamically updated variable Michael 01/09/13 3:47pm
Re: Re: Checking dynamically updated variable PhysicsGuy 01/09/13 9:05pm
Re: Checking dynamically updated variable PhysicsGuy 01/09/13 11:55pm
Re: Re: Checking dynamically updated variable Michael 01/10/13 4:15pm
Re: Checking dynamically updated variable PhysicsGuy 01/10/13 7:29pm
Re: Re: Checking dynamically updated variable Michael 01/11/13 9:29pm
Re: Re: Re: Checking dynamically updated variable PhysicsGuy 01/12/13 8:18pm
Re: Re: Re: Re: Checking dynamically updated va... Michael 01/13/13 9:41pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic