Plotting Curves Python: How to include step size
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Himanshu Sinha
el 24 de Mayo de 2021
Respondida: Yutaka Yamada
el 24 de Mayo de 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.
0 comentarios
Respuesta aceptada
Yutaka Yamada
el 24 de Mayo de 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()
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Integration with Online Platforms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!