Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.5K Views
|
3 Replies
|
1 Total Like
View groups...
Share
Share this post:

Controlling how many points comprise your plot?

Posted 4 years ago

Hello everyone,

I am trying to plot the function below, but only for values of t = 0, 10, 20, 30, etc. Is there an efficient way to control how many points your plot is comprised of? Any suggestions would be greatly appreciated!

Alex

f = Exp[-0.07*t]*500

Plot[f, {t, 0, 400}]
Attachments:
POSTED BY: Alex L
3 Replies
Posted 4 years ago

DiscretePlot does what you want

f = Exp[-0.07*t]*500;
DiscretePlot[f, {t, 0, 40, 10}]
POSTED BY: Hans Milton
Posted 4 years ago

That unfortunately does not do what I need. I am hoping to only plot points for the function evaluated at certain times, e.g., t = 0, 10, 20 30, etc. Is this possible?

Thank you for your response!

Alex

POSTED BY: Alex L

Does this do what you need?

f = Exp[-0.07*t]*500;
Plot[f, {t, 0, 400}, PlotRange -> All]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard