s(t) et m(t).py
À propos du fichier
- Type de fichier
- Fichier PY de < 1 Ko (text/x-python)
- Confidentialité
- Fichier public, envoyé le 31 octobre 2015 à 17:48, depuis l'adresse IP 90.29.x.x (France)
- Sécurité
- Ne contient aucun Virus ou Malware connus - Dernière vérification: 3 jours
- Statistiques
- La présente page de téléchargement a été vue 851 fois depuis l'envoi du fichier
- Page de téléchargement
-
Aperçu du fichier
import matplotlib.pyplot as pl
import numpy as np
from scipy.fftpack import fft, fftfreq
from numpy import pi, sin, linspace, random, zeros
from scipy.signal import square
def s(t):
return 1.3*np.cos(2*np.pi*71*t)+0.3*np.cos(2*np.pi*167*t)+1.2*np.cos(2*np.pi*200*t)
pl.subplot(211)
plt.title('Signal s(t)' )
t = np.linspace(0, 10, 10024)
y = s(t)
pl.plot(t, y)
#tracé du signal s(t)
def r(t):
return 1*np.cos(2*np.pi*167*t)
pl.subplot(212)
z=s(t)*r(t)
plt.title('Signal m(t)' )
pl.plot(t, z)
pl.show() #tracé du signal m(t)
Partager le fichier s(t) et m(t).py sur le Web et les réseaux sociaux:
Télécharger le fichier s(t) et m(t).py
Télécharger s(t) et m(t).py