Message Boards Message Boards

0
|
14636 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

plotting a function with a changing constant in a graph

Posted 10 years ago
If I have a function like y=mx, I would like to be able to plot the function in Mathematica on the same graph with different specified values of m. the actual equation is much more complicated, so I don't want to use the "plot multiple functions" option. I would like to plot all of the different functions on the same graph with different m values for each. Can anyone help me out?
POSTED BY: Ryan Sampson
3 Replies
Posted 10 years ago
mList = {1, 3, 4, 6};

Plot[Table[m x, {m, mList}] // Evaluate, {x, 0, 10},
PlotLegends -> mList]
POSTED BY: David Keith
Posted 10 years ago
thanks!
POSTED BY: Ryan Sampson
Manipulate[Plot[m x,{x,-4,4}, PlotRange -> {-4, 4}],{m,-2,2,.1}
POSTED BY: S M Blinder
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract