Plotting Curves Python: How to include step size
8 次查看(过去 30 天)
显示 更早的评论
How do I include step size of 0.01 in the formula? I am unable to understand. I have done this in the jupyter.
0 个评论
采纳的回答
Yutaka Yamada
2021-5-24
Hi, please try below.
import matplotlib.pyplot as plt
import numpy as np
t = np.arange(-1.2, 1.2, 0.01)
x1 = np.exp(t)
x2 = np.exp(-t)
x3 = np.exp(t**2)
plt.plot(t,x1)
plt.plot(t,x2)
plt.plot(t,x3)
plt.show()
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Integration with Online Platforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!