graphes added
BIN
Bode.xlsx
Normal file
|
@ -2,15 +2,17 @@ clc;
|
|||
clear all;
|
||||
close all;
|
||||
|
||||
F1 = 85000;
|
||||
% F1 = 85005.9;
|
||||
F2 = 90000;
|
||||
%F3 = 95000;
|
||||
|
||||
F1 = 85005.9;
|
||||
F3 = 94986.8;
|
||||
F4 = 100000;
|
||||
%F5 = 115000;
|
||||
F5 = 115015.9;
|
||||
F4 = 100000;
|
||||
F2 = 90000;
|
||||
F6 = 120000;
|
||||
%
|
||||
% F1 = 85000;
|
||||
% F5 = 115000;
|
||||
% F3 = 95000;
|
||||
|
||||
ChebFac0 = 1;
|
||||
ChebFac1 = 3.0332e-6;
|
||||
|
@ -39,10 +41,10 @@ res=sim('Simul6PistoletsDFT.slx');
|
|||
|
||||
|
||||
|
||||
%plot(res.Echant.Data);
|
||||
plot(res.Continu.Data);
|
||||
|
||||
F=linspace(0, Fe-Fe/M, M);
|
||||
% mauvais_echantillon = res.Echant.Data;
|
||||
% mauvais_echantillon = res.Echant.Data;
|
||||
% for i = 1:floor((length(mauvais_echantillon) / 2))
|
||||
% mauvais_echantillon(i) = 0;
|
||||
% end
|
||||
|
@ -53,26 +55,30 @@ F=linspace(0, Fe-Fe/M, M);
|
|||
% fourier = abs(fft(filteredSignal)/M);
|
||||
|
||||
|
||||
fourier=abs(fft(res.Echant.Data)/M);
|
||||
% fourier=abs(fft(res.Echant.Data)/M);
|
||||
|
||||
%res=sim('SimulDFT.slx');
|
||||
%fourier=fft(res.Sinus_Echantillon.Data)/M;
|
||||
%fourier = real(fourier * (1i));
|
||||
|
||||
% figure(1)
|
||||
% bode(tf(1,[ChebFac4, ChebFac3, ChebFac2, ChebFac1, ChebFac0]));
|
||||
% figure(2)
|
||||
% bode(tf(F,arrayfun(@(x) chebychev(x), F)));
|
||||
|
||||
% grid;
|
||||
% stem(F, fourier, 'o');
|
||||
% set(gca, 'YScale', 'log');
|
||||
plot(res.Echant);
|
||||
% plot(res.Echant);
|
||||
%plot(res.Sinus_Continu);
|
||||
%hold on; % permet de superposer la courbe à suivre
|
||||
% plot(res.Sinus_Echantillon,'o');
|
||||
|
||||
function filtre = chebychev(p)
|
||||
ChebFac0 = 1;
|
||||
ChebFac1 = 3.0332e-6;
|
||||
ChebFac2 = 1.162e-11;
|
||||
ChebFac3 = 7.6663e-18;
|
||||
ChebFac4 = 1.7483e-23;
|
||||
filtre = 1 / (ChebFac4 * p^4 + ChebFac3 * p^3 + ChebFac2 * p^2 + ChebFac1 * p + ChebFac0);
|
||||
end
|
||||
%
|
||||
% function filtre = chebychev(p)
|
||||
% ChebFac0 = 1;
|
||||
% ChebFac1 = 3.0332e-6;
|
||||
% ChebFac2 = 1.162e-11;
|
||||
% ChebFac3 = 7.6663e-18;
|
||||
% ChebFac4 = 1.7483e-23;
|
||||
% filtre = 1 / (ChebFac4 * p^4 + ChebFac3 * p^3 + ChebFac2 * p^2 + ChebFac1 * p + ChebFac0);
|
||||
% end
|
||||
|
|
BIN
signal/matlab/Thumbs.db
Normal file
BIN
signal/matlab/bode.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
signal/matlab/erreur_fft_log.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
signal/matlab/fft_sans_parasitage.png
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
signal/matlab/harmonique_signal_cardinal.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
signal/matlab/mauvaise_fenetre_d_echantillonage.png
Normal file
After Width: | Height: | Size: 9.8 KiB |
BIN
signal/matlab/signal_apres_filtre.png
Normal file
After Width: | Height: | Size: 16 KiB |
|
@ -1,6 +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="ff96ea0b-c4c1-4804-8a4c-c2928fa73624">
|
||||
<checksum>pmTiLxkS7fwMuApKXllVww==</checksum>
|
||||
<slcache.FileAttributes type="slcache.FileAttributes" uuid="f5752a9c-8252-41c4-ba42-26d70cc914e8">
|
||||
<checksum>Jm7etaswd1ggbl3Ygswmbg==</checksum>
|
||||
</slcache.FileAttributes>
|
||||
</MF0>
|
BIN
signal/matlab/tout_pistolets_sans_parasitage.png
Normal file
After Width: | Height: | Size: 8.5 KiB |