forked from acco/chti23
26 lines
391 B
Matlab
26 lines
391 B
Matlab
close all;
|
|
T = 0.0002;
|
|
t1=T/5;
|
|
Fe = 320000;
|
|
Te = 1/Fe;
|
|
Tsim = T-Te;
|
|
M = 64;
|
|
deltaF = 5000;
|
|
F1 = 85005.9;
|
|
F2 = 90000;
|
|
F3 = 94986.8;
|
|
F4 = 100000;
|
|
F5 = 115015.9;
|
|
F6 = 120000;
|
|
Res=sim('simul3_2');
|
|
|
|
figure(1);
|
|
plot(Res.Sinus_Echanti);
|
|
grid;
|
|
title('tracé temporel');
|
|
|
|
freq =deltaF*[0:1:M-1];
|
|
yt = fft(Res.Sinus_Echanti.Data);
|
|
figure(2);
|
|
stem(freq,abs(yt)/M,'r*');
|
|
grid;
|