graphes added

This commit is contained in:
Nathan Billard 2023-03-08 18:09:36 +01:00
parent e9834d9599
commit 6fb8b701c2
13 changed files with 27 additions and 21 deletions

BIN
Bode.xlsx Normal file

Binary file not shown.

View 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

Binary file not shown.

BIN
signal/matlab/Thumbs.db Normal file

Binary file not shown.

BIN
signal/matlab/bode.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB