Plotting Curves Python: How to include step size

7 ビュー (過去 30 日間)
Himanshu Sinha
Himanshu Sinha 2021 年 5 月 24 日
回答済み: Yutaka Yamada 2021 年 5 月 24 日
How do I include step size of 0.01 in the formula? I am unable to understand. I have done this in the jupyter.

採用された回答

Yutaka Yamada
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 件)

カテゴリ

Help Center および File ExchangeIntegration with Online Platforms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by