WOLFRAM COMMUNITY
Connect with users of Wolfram technologies to learn, solve problems and share ideas
Join
Sign In
Dashboard
Groups
People
Message Boards
Answer
(
Unmark
)
Mark as an Answer
WOLFRAM COMMUNITY
Dashboard
Groups
People
0
|
14637 Views
|
3 Replies
|
3 Total Likes
View groups...
Follow this post
Share
Share this post:
GROUPS:
Mathematica
Graphics and Visualization
plotting a function with a changing constant in a graph
Ryan Sampson
Ryan Sampson, uwm
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
Reply
|
Flag
3 Replies
Sort By:
Replies
Likes
Recent
0
S M Blinder
S M Blinder, WRI and Univ of Michigan
Posted
10 years ago
Manipulate[Plot[m x,{x,-4,4}, PlotRange -> {-4, 4}],{m,-2,2,.1}
POSTED BY:
S M Blinder
Reply
|
Flag
0
Ryan Sampson
Ryan Sampson, uwm
Posted
10 years ago
thanks!
POSTED BY:
Ryan Sampson
Reply
|
Flag
3
David Keith
David Keith
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
Reply
|
Flag
Reply to this discussion
in reply to
Add Notebook
Community posts can be styled and formatted using the
Markdown syntax
.
Tag limit exceeded
Note: Only the first five people you tag will receive an email notification; the other tagged names will appear as links to their profiles.
Publish anyway
Cancel
Reply Preview
Attachments
Remove
Add a file to this post
Follow this discussion
or
Discard
Group Abstract
Be respectful. Review our
Community Guidelines
to understand your role and responsibilities.
Community Terms of Use
Feedback
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how »