diff --git a/signal/matlab/ScriptDFT.m b/signal/matlab/ScriptDFT.m new file mode 100644 index 0000000..52ffa80 --- /dev/null +++ b/signal/matlab/ScriptDFT.m @@ -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'); diff --git a/signal/matlab/Simul6PistoletsDFT.slx b/signal/matlab/Simul6PistoletsDFT.slx new file mode 100644 index 0000000..f15a0ec Binary files /dev/null and b/signal/matlab/Simul6PistoletsDFT.slx differ diff --git a/signal/matlab/Simul6PistoletsDFT.slxc b/signal/matlab/Simul6PistoletsDFT.slxc new file mode 100644 index 0000000..ffdee28 Binary files /dev/null and b/signal/matlab/Simul6PistoletsDFT.slxc differ diff --git a/signal/matlab/SimulDFT.slx b/signal/matlab/SimulDFT.slx new file mode 100644 index 0000000..33da15c Binary files /dev/null and b/signal/matlab/SimulDFT.slx differ diff --git a/signal/matlab/SimulDFT.slxc b/signal/matlab/SimulDFT.slxc new file mode 100644 index 0000000..18ce8db Binary files /dev/null and b/signal/matlab/SimulDFT.slxc differ diff --git a/signal/matlab/matlab.mat b/signal/matlab/matlab.mat new file mode 100644 index 0000000..a516bc1 Binary files /dev/null and b/signal/matlab/matlab.mat differ diff --git a/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/checksumOfCache.mat b/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/checksumOfCache.mat new file mode 100644 index 0000000..e4f8176 Binary files /dev/null and b/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/checksumOfCache.mat differ diff --git a/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/tmwinternal/simulink_cache.xml b/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/tmwinternal/simulink_cache.xml new file mode 100644 index 0000000..be797d2 --- /dev/null +++ b/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/tmwinternal/simulink_cache.xml @@ -0,0 +1,6 @@ + + + + rxgpOFrmDq+h/7MggWfCkg== + + \ No newline at end of file diff --git a/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/varInfo.mat b/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/varInfo.mat new file mode 100644 index 0000000..bf819d2 Binary files /dev/null and b/signal/matlab/slprj/sim/varcache/Simul6PistoletsDFT/varInfo.mat differ diff --git a/signal/matlab/slprj/sim/varcache/SimulDFT/checksumOfCache.mat b/signal/matlab/slprj/sim/varcache/SimulDFT/checksumOfCache.mat new file mode 100644 index 0000000..1b9fffc Binary files /dev/null and b/signal/matlab/slprj/sim/varcache/SimulDFT/checksumOfCache.mat differ diff --git a/signal/matlab/slprj/sim/varcache/SimulDFT/tmwinternal/simulink_cache.xml b/signal/matlab/slprj/sim/varcache/SimulDFT/tmwinternal/simulink_cache.xml new file mode 100644 index 0000000..6e32e0a --- /dev/null +++ b/signal/matlab/slprj/sim/varcache/SimulDFT/tmwinternal/simulink_cache.xml @@ -0,0 +1,6 @@ + + + + sRqyXcwexKgDRLel16Do4Q== + + \ No newline at end of file diff --git a/signal/matlab/slprj/sim/varcache/SimulDFT/varInfo.mat b/signal/matlab/slprj/sim/varcache/SimulDFT/varInfo.mat new file mode 100644 index 0000000..0d8ed27 Binary files /dev/null and b/signal/matlab/slprj/sim/varcache/SimulDFT/varInfo.mat differ