Skip to main content
deleted 42 characters in body; edited tags
Source Link
Kuba
  • 137.7k
  • 13
  • 289
  • 751

Suppose I have something like Manipulate[Plot[Sin[n x], {x, -Pi, Pi}], {n, 20, "Frequency"}], (so,

Manipulate[Plot[Sin[n x], {x, -Pi, Pi}], {n, 20, "Frequency"}]

with a manual input field) but I want to accept inputs like 20% (I know, stupid in this particular example) or 20 Hz20 Hz. Is there any way of doing that?

Suppose I have something like Manipulate[Plot[Sin[n x], {x, -Pi, Pi}], {n, 20, "Frequency"}], (so, a manual input field) but I want to accept inputs like 20% (I know, stupid in this particular example) or 20 Hz. Is there any way of doing that?

Suppose I have something like

Manipulate[Plot[Sin[n x], {x, -Pi, Pi}], {n, 20, "Frequency"}]

with a manual input field but I want to accept inputs like 20 Hz. Is there any way of doing that?

Source Link
Igor Rivin
  • 5.1k
  • 20
  • 19

Yet more on Manipulate[] - Formated Input

Suppose I have something like Manipulate[Plot[Sin[n x], {x, -Pi, Pi}], {n, 20, "Frequency"}], (so, a manual input field) but I want to accept inputs like 20% (I know, stupid in this particular example) or 20 Hz. Is there any way of doing that?