How to plot functions
조회 수: 5 (최근 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
댓글 수: 0
답변 (2개)
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))
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!