Mathematica操作函数

时间:2012-12-26 21:14:26

标签: wolfram-mathematica

是否有人知道如何使用show命令使用Manipulate命令。 基本上,我想在一个坐标系上显示多个函数。但是,我只希望其中一个被“操纵”(即其他应该是静态的)。 我无法理解如何一起使用Show和Manipulate。 谢谢你的帮助! HR

1 个答案:

答案 0 :(得分:2)

如果您不想在其中一个图中使用受控变量a,只需省略它。

Manipulate[
 Show[
  Plot[a x, {x, 0, 3.5}],
  ListPlot[{1, 2/a, 3/a}]],
 {{a, 1}, 0, 2}]