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!