Hi. I am calling the fir1 function to design an FIR filter. One argument of fir1 is the type of window that is to be used, e.g., hann, hamming, etc. However, the type of window depends on the stopband attentuation that one requires. So, I have an if ... else ... end conditional prior to callng fir1. it looks like
if deltadB_max <= 21
FixedWindow = 'rectwin';
FixedWindow = 'bartlett';
Now, when I invoke fir1, how can pass the variable FixedWindow into the arguments of fir1? Thank you.