What is the difference between designfilt and fdesign

4 vues (au cours des 30 derniers jours)
Micke Malmström
Micke Malmström le 19 Oct 2017
Im trying to do zero phase filter my obj.CurrentData with this:
% FilterType='butter';
% FilterParam='N,F3dB1,F3dB2';
% BPFOrder=2;
d = fdesign.bandpass(obj.BPFilterParam,obj.BPFOrder,obj.BPFLimits(1),obj.BPFLimits(2),obj.Fs);
Hd = design(d,obj.BPFilterType);
obj.CurrentData=filtfilt(Hd,obj.CurrentData')';
But I only get: Error using filtfilt (line 78) Not enough input arguments.
It wants 3 inputs... although the help text says "y = filtfilt(d,x)" should work?

Réponses (1)

Honglei Chen
Honglei Chen le 19 Oct 2017
Could you share which release you are using? You can find the info by runnig ver at the command prompt.
HTH
  1 commentaire
Micke Malmström
Micke Malmström le 20 Oct 2017
Modifié(e) : Micke Malmström le 20 Oct 2017
MATLAB Version: 9.2.0.556344 (R2017a)

Connectez-vous pour commenter.

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by