Blank plot on my computer
Mostra commenti meno recenti
This is my code and I was wondering why is my figure 6 empty:
https://dontpad.com/labpdsmiki
3 Commenti
John D'Errico
il 16 Mag 2024
Instead of forcing people to go to a possibly dangerous link, why not just show your code here? Why should we trust that that link will be what you say it is?
Mihaela-Roxana
il 16 Mag 2024
Modificato: the cyclist
il 16 Mag 2024
Mathieu NOE
il 16 Mag 2024
you have a problem with your butterworth filters :
[bd1,ad1]=impinvar(bs1,as1,Fs);
bd1 is only NaN values , so everything you filter with this is going to be NaN and you end up with blank figure
Also , important information : you are designing very high order analog butterworth filters , to then transform them in digital form with impinvar (why not then directly use the digital butter way ?)
second info : you get NaN because your filters are unstable :
It is best not to use the transfer function implementation of discrete (digital) filters,because those are frequently unstable. Use zero-pole-gain and second-order-section implementation instead.
%Example :
fc = 50;
fs = 1e4;
[z,p,k] = butter(6,fc/(fs/2));
[sos1,g1] = zp2sos(z,p,k);
figure(1)
freqz(sos1,2^16,fs)
Risposte (0)
Categorie
Scopri di più su Signal Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!






