(adsbygoogle = window.adsbygoogle || []).push({}); problem with mathematica - i am new to this!!

hi,

im trying to produce a manipulate graph where the controller type is the drop down menu. (or pop up menu). However, mathematica doesnt seem to like the range of my variables.

I have typed the following into mathematica:

Manipulate[ Plot[r^2 p[n, l, r], {r, 0, 30}, ColorFunction -> "RoseColors", PlotRange -> All,

PlotStyle -> {Thickness[0.008]}, AxesLabel -> {"r(a)", "probability"}], {n, 1, 4, 1}, {l, 0, n - 1, 1}, ControlType -> {PopupMenu}]

(where p is my predefined function that depends on n, l, r).

The error message is as follows:

"Manipulate::vstype: ControlType -> PopupMenu is not supported for the variable specification {l$$,0,n$$-1}. ControlType -> Manipulator will be used instead."

suggesting that it doesnt like my upper bound.

How can i get around this? is there a command i can use? i vaguely recall other ppl using the table function within the manipulate function but im not sure how to do this either...

thanks

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Problem with mathematica - i am new to this

Loading...

Similar Threads - Problem mathematica | Date |
---|---|

Mathematica Solve Perturbation problem with mathematica | Dec 7, 2017 |

Mathematica For looping problem not getting answer | May 24, 2017 |

Mathematica Graph Plotting Problem in Mathematica | Nov 22, 2016 |

Mathematica - Countour plot problem | Jun 10, 2015 |

Mathematica problem with plotting | Apr 5, 2015 |

**Physics Forums - The Fusion of Science and Community**