Need Help Plotting y=1-e^{-5x}
조회 수: 14 (최근 30일)
이전 댓글 표시
I am trying to plot y=1-e^{-5x}. but matlab keeps spitting out the wrong plot. Please let me know what I am doing wrong.
My Code:
>> syms x y
>> y = 1-(exp(-5*x));
>> fplot(y)

The plot is supposed to look like this

댓글 수: 0
채택된 답변
Chunru
2022년 9월 2일
syms x y
y = 1-(exp(-5*x));
fplot(y, [-.2 3]) % need right interval for x (or set ylim([-2 1])
grid on
댓글 수: 3
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
