MathGroup Archive 2013

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

Search the Archive

Re: controllers in manipulate

An example: a circle with variable radius taking the integral values {1, 2, 3, 4, 5}, together with a circumscribed angle taking real values between Pi/4 and Pi/2:
Manipulate[Graphics[{Circle[{0,0},r],Line[{{r,0},{0,0},{r Cos[a],r Sin[a]}}]},PlotRange->{{-5,5.1},{-5,5}}],{{a,\[Pi]/4},\[Pi]/8,\[Pi]/2},{{r,1},{1,2,3,4,5}}]


> From: fgutiers2002 at
> Subject: controllers in manipulate
> To: mathgroup at
> Date: Sun, 20 Oct 2013 23:38:46 -0400
> Dear Group:
> I have a Manipulate[f, ...], where f is a function of 2 variables, x and y
> x can get any real value, but y can only be an integer. How can I put the controls so that the control of x is a slider and the control of
> y is a radio button?
> Thanks!

  • Prev by Date: Re: controllers in manipulate
  • Next by Date: How to read 12 bits from a stream ?
  • Previous by thread: Re: controllers in manipulate
  • Next by thread: Re: controllers in manipulate