dqf
This commit is contained in:
parent
33e284d930
commit
c64609438d
12 changed files with 52 additions and 0 deletions
40
signal/matlab/ScriptDFT.m
Normal file
40
signal/matlab/ScriptDFT.m
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
clc;
|
||||||
|
clear all;
|
||||||
|
close all;
|
||||||
|
|
||||||
|
F1 = 85000;
|
||||||
|
F2 = 90000;
|
||||||
|
F3 = 95000;
|
||||||
|
F4 = 100000;
|
||||||
|
F5 = 115000;
|
||||||
|
F6 = 120000;
|
||||||
|
|
||||||
|
Fe=320000;
|
||||||
|
Te = 1/Fe;
|
||||||
|
|
||||||
|
Fsin=120000;
|
||||||
|
N=6;
|
||||||
|
M=pow2(N);
|
||||||
|
T=M*Te;
|
||||||
|
|
||||||
|
% Condition : T < M/(2*Fsin)
|
||||||
|
%T = pow2(N-2)/Fsin;
|
||||||
|
%Te = T/M;
|
||||||
|
|
||||||
|
Tsim = T-Te;
|
||||||
|
res=sim('Simul6PistoletsDFT.slx');
|
||||||
|
|
||||||
|
F=linspace(0, Fe-Fe/M, M);
|
||||||
|
fourier=fft(res.Echant.Data)/M;
|
||||||
|
|
||||||
|
%res=sim('SimulDFT.slx');
|
||||||
|
%fourier=fft(res.Sinus_Echantillon.Data)/M;
|
||||||
|
%fourier = real(fourier * (1i));
|
||||||
|
|
||||||
|
|
||||||
|
grid;
|
||||||
|
stem(F, abs(fourier), 'o');
|
||||||
|
|
||||||
|
%plot(res.Sinus_Continu);
|
||||||
|
%hold on; % permet de superposer la courbe à suivre
|
||||||
|
%plot(res.Sinus_Echantillon,'o');
|
BIN
signal/matlab/Simul6PistoletsDFT.slx
Normal file
BIN
signal/matlab/Simul6PistoletsDFT.slx
Normal file
Binary file not shown.
BIN
signal/matlab/Simul6PistoletsDFT.slxc
Normal file
BIN
signal/matlab/Simul6PistoletsDFT.slxc
Normal file
Binary file not shown.
BIN
signal/matlab/SimulDFT.slx
Normal file
BIN
signal/matlab/SimulDFT.slx
Normal file
Binary file not shown.
BIN
signal/matlab/SimulDFT.slxc
Normal file
BIN
signal/matlab/SimulDFT.slxc
Normal file
Binary file not shown.
BIN
signal/matlab/matlab.mat
Normal file
BIN
signal/matlab/matlab.mat
Normal file
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<MF0 version="1.1" packageUris="http://schema.mathworks.com/mf0/SlCache/19700101">
|
||||||
|
<slcache.FileAttributes type="slcache.FileAttributes" uuid="a5a0bbf3-a847-4a2b-9d82-9ebba8ce1642">
|
||||||
|
<checksum>rxgpOFrmDq+h/7MggWfCkg==</checksum>
|
||||||
|
</slcache.FileAttributes>
|
||||||
|
</MF0>
|
BIN
signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/varInfo.mat
Normal file
BIN
signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/varInfo.mat
Normal file
Binary file not shown.
BIN
signal/matlab/slprj/sim/varcache/SimulDFT/checksumOfCache.mat
Normal file
BIN
signal/matlab/slprj/sim/varcache/SimulDFT/checksumOfCache.mat
Normal file
Binary file not shown.
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<MF0 version="1.1" packageUris="http://schema.mathworks.com/mf0/SlCache/19700101">
|
||||||
|
<slcache.FileAttributes type="slcache.FileAttributes" uuid="65125006-5bcd-42f9-aab5-1c823d92c462">
|
||||||
|
<checksum>sRqyXcwexKgDRLel16Do4Q==</checksum>
|
||||||
|
</slcache.FileAttributes>
|
||||||
|
</MF0>
|
BIN
signal/matlab/slprj/sim/varcache/SimulDFT/varInfo.mat
Normal file
BIN
signal/matlab/slprj/sim/varcache/SimulDFT/varInfo.mat
Normal file
Binary file not shown.
Loading…
Reference in a new issue