0
$\begingroup$

My MATLAB code is

d = fdesign.bandpass(.3, .4, .6, .7, 80, .5, 60);
    Hd = design(d, 'ellip');
    fvtool(Hd)

when i run my script , i see two graphs on output as shown in attached snapshot, one graph is solid line and other is dotted line, what is difference between those two graphs? enter image description here

$\endgroup$

1 Answer 1

3
$\begingroup$

The solid blue is the designed filter response while the dashed red lines are the design constraints from your command:

  1. First stopband frequency is set to 0.3.
  2. First passband frequency is set to 0.4.
  3. Second passband frequency is set to 0.6.
  4. Second stopband frequency is set to 0.7.
  5. First stopband attenuation is set to at least 80 dB.
  6. Passband ripple is set to at most 0.5 dB.
  7. Second stopband attenuation is set to at least 60 dB.
$\endgroup$
2
  • $\begingroup$ you mean,dotted line is desired and solid line is practical/actual response?? $\endgroup$
    – DSP_CS
    Commented May 25, 2022 at 10:43
  • $\begingroup$ No. For example, second stopband attenuation is set to at least 60 dB. See the updated text $\endgroup$ Commented May 25, 2022 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.