Python für MATLAB-Anwender
Justin Kiggins
Product Manager
print(arr)
[[2, 4, 8, 16, 32]]
print(arr[2])
8
print(arr[0])
2
print(arr[-1])
32

import matplotlib.pyplot as plt
# Neue Abbildung erstellen plt.figure()# y als Funktion von x plotten plt.plot(x, y)# x- und y-Label setzen plt.xlabel('x') plt.ylabel('y')# Plot anzeigen! plt.show()

Python für MATLAB-Anwender