How to plot functions

5 vues (au cours des 30 derniers jours)
Dominic
Dominic le 30 Mar 2011
How to plot (exp(-0.2*x)*sin(x+2)=0.1) and (y=1 + exp(-0.2*x)*sin(x+2)
cant get the graph to show up... need help

Réponses (2)

Paulo Silva
Paulo Silva le 30 Mar 2011
One way to do it
ezplot('y=1 + exp(-0.2*x)*sin(x+2)')
  2 commentaires
Dominic
Dominic le 30 Mar 2011
awesome thank you, anyone know how to use fzero to find the 3 values of x that solve this equation?
Walter Roberson
Walter Roberson le 30 Mar 2011
See your fzero question

Connectez-vous pour commenter.


Matt Fig
Matt Fig le 30 Mar 2011
Another way
f = @(x) 1 + exp(-0.2*x).*sin(x+2); % Define the function.
x = -20:.01:20; % Define an x range for the plot;
plot(x,f(x))

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by