Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.3K Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Manipulate the range of values for the variable in a Plot

Posted 5 years ago
POSTED BY: Tom Goodell
4 Replies

That's perfect! Thank you so much!

POSTED BY: Tom Goodell
Posted 5 years ago

Hi Tom,

ClearAll@ξ
ξ[a_, b_] := (a + b)/2

Manipulate[Plot[fxsquared[x], {x, a, b},
  Epilog -> {Red, PointSize[0.02], Point[{ξ[a, b], fxsquared[ξ[a, b]]}]},
  PlotRange -> {{0, 5}, {0, 25}}],
 {a, 1, 5}, {b, 1.01, 5}]

enter image description here

POSTED BY: Rohit Namjoshi
POSTED BY: Tom Goodell

Do not set variables of constant values with :=, just use =

For the sake of Manipulate you do not need them at all. The following will give you the basic idea, and from there keep reading the documentation

Manipulate[Plot[Sin[x], {x, a, b}], {a, 0, 2 Pi}, {b, 3 Pi, 10 Pi}]
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard