How to plot functions

조회 수: 5 (최근 30일)
Dominic
Dominic 2011년 3월 30일
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

답변 (2개)

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

댓글을 달려면 로그인하십시오.


Matt Fig
Matt Fig 2011년 3월 30일
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))

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by