IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Signal Discussion :

filtre RIF (réponse impulsionnelle finie)


Sujet :

Signal

  1. #1
    Candidat au Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Janvier 2015
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Haute Vienne (Limousin)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Janvier 2015
    Messages : 2
    Points : 4
    Points
    4
    Par défaut filtre RIF (réponse impulsionnelle finie)
    Bonjour !

    Je vous présente mon très beau filtre H (numérique RIF) :
    (figure 1 : abs(H), figure 2 : angle'H))

    Nom : filtre RIF.JPG
Affichages : 1810
Taille : 47,2 Ko

    Il est donc en mémoire sous forme de coefficient.

    Mon problème est que je voudrais garder juste la première bande passante, le reste le transformer en bande de réjection.
    C'est à dire en faire un passe bas classique, de fréquence de coupure 40Hz.

    quelqu'un sait quel outil je dois me servir ?

    Merci d'avance !

  2. #2
    Membre régulier
    Homme Profil pro
    Ingénieur d'études
    Inscrit en
    Juillet 2014
    Messages
    46
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 71
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur d'études

    Informations forums :
    Inscription : Juillet 2014
    Messages : 46
    Points : 111
    Points
    111
    Par défaut
    Il faut choisir une méthode de synthèse, dont les plus classiques sont Butterworth (butter), Chebyshev (cheby1, cheby2), elliptique (ellip). Ces synthèses ne sont pas les seules, leur variété est illimitée. Ils ont chacun leur qualités et leur défaut, et la sélection doit se faire en fonction de la nature de l'application. Voila un petit showcase qui montre tout ce petit monde:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    % Panoplie des IIR :
    %		Butterworth
    %		Chebyshev type 1
    %		Chebyshev type 2
    %		Elliptic (Cauer)
     
    clear all; fig=1;
     
    fs = 10000;		% Fréquence d_échantillonnage
    fc =  1000;		% Fréquence de coupure
    ripple = 3; 	% Ondulation (pour Chebyshev)
    rejec = 40; 	% Réjection (pour Elliptic)
     
    cutoff = fc/(fs/2);
    bandep = [0.5*cutoff,2.0*cutoff];
     
    %
    % LOW-PASS
    %
     
    figure(fig++, 'name', 'low-pass filters');  clf;
     
    subplot (2,2,1); grid on;
    title ('Butterworth'); 
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6,8,10]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = butter(order,cutoff,'low');
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','northeast');
     
    subplot (2,2,2); grid on;
    title ('Chebyshev-1');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6,8,10]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = cheby1(order,ripple,cutoff);
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','northeast');
     
    subplot (2,2,3); grid on;
    title ('Chebyshev-2');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6,8,10]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = cheby2(order,rejec,cutoff);
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','northeast');
     
    subplot (2,2,4); grid on;
    title ('Elliptic');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6,8,10]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = ellip(order,ripple,rejec,cutoff);
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','northeast');
     
     
    %
    % HIGH-PASS
    %
     
    figure(fig++, 'name', 'high-pass filters'); clf;
     
    subplot (2,2,1); grid on;
    title ('Butterworth');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6,8,10]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = butter(order,cutoff,'high');
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','southeast');
     
    subplot (2,2,2); grid on;
    title ('Chebyshev-1');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6,8,10]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = cheby1(order,ripple,cutoff,'high');
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','southeast');
     
    subplot (2,2,3); grid on;
    title ('Chebyshev-2');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6,8,10]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = cheby2(order,rejec,cutoff,'high');
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','southeast');
     
    subplot (2,2,4); grid on;
    title ('Elliptic');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6,8,10]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = ellip(order,ripple,rejec,cutoff,'high');
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','southeast');
     
    %
    % PASSBAND
    %
     
    figure(fig++, 'name', 'band-pass filters'); clf;
     
    subplot (2,2,1); grid on;
    title ('Butterworth');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = butter(order,bandep);
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','northeast');
     
    subplot (2,2,2); grid on;
    title ('Chebyshev-1');
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    axis ([100,10000,-60,10]);
    hold all; label = [];
    for order = [2,4,6]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = cheby1(order,ripple,bandep);
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','northeast');
     
    subplot (2,2,3); grid on;
    title ('Chebyshev-2');
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    axis ([100,10000,-60,10]);
    hold all; label = [];
    for order = [2,4,6]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = cheby2(order,rejec,bandep);
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','northeast');
     
    subplot (2,2,4); grid on;
    title ('Elliptic');
    axis ([100,10000,-60,10]);
    xlabel ('Frequence (Hz)');
    ylabel ('Attenuation (dB)');
    hold all; label = [];
    for order = [2,4,6]
    	label = [label ; sprintf("n=%d",order)];
    	[b,a] = ellip(order,ripple,rejec,bandep);
    	[h,w] = freqz(b,a,10000,fs);
    	semilogx(w,20*log10(abs(h)));
    end
    hold off; legend (cellstr(label),'location','northeast');
     
     
     
     
     
     
     
     
     
    # http://octave.sourceforge.net/signal/overview.html
    #
    # In general, you should use the [z,p,k] syntax to design
    # IIR filters. To analyze or implement your filter, you can
    # then use the [z,p,k] output with zp2sos. If you design the 
    # filter using the [b,a] syntax, you may encounter numerical 
    # problems. These problems are due to round-off errors. They
    # may occur for filter orders as low as 6. 
     
    #	[z,p,k] = butter(order,cutoff,'low');
    #	sos = zp2sos(z,p,k);

Discussions similaires

  1. Réponses impulsionnelle finie ou infinie ?
    Par Lerenard1984 dans le forum Algorithmes et structures de données
    Réponses: 13
    Dernier message: 14/05/2009, 10h49
  2. Graphique d'une réponse impulsionnelle
    Par virtuadrack dans le forum Signal
    Réponses: 17
    Dernier message: 26/06/2008, 10h50
  3. Réponses: 2
    Dernier message: 16/06/2008, 10h06
  4. réponse impulsionnelle d'un système
    Par sandball22 dans le forum Signal
    Réponses: 1
    Dernier message: 23/05/2007, 20h32
  5. Conception filtre RIF
    Par b.khadija dans le forum VHDL
    Réponses: 1
    Dernier message: 21/02/2007, 08h14

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo