Plotting Curves Python: How to include step size

6 Ansichten (letzte 30 Tage)
Himanshu Sinha
Himanshu Sinha am 24 Mai 2021
Beantwortet: Yutaka Yamada am 24 Mai 2021
How do I include step size of 0.01 in the formula? I am unable to understand. I have done this in the jupyter.

Akzeptierte Antwort

Yutaka Yamada
Yutaka Yamada am 24 Mai 2021
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()

Weitere Antworten (0)

Kategorien

Mehr zu Integration with Online Platforms finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by