Need Help Plotting y=1-e^{-5x}
4 ビュー (過去 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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1114440/image.png)
The plot is supposed to look like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1114445/image.png)
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 件)
参考
カテゴリ
Help Center および File Exchange で Number Theory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!