main content

frequency response of lowpass chebyshev filter -凯发k8网页登录

use the filter block to study the frequency response of a lowpass chebyshev filter.

from the matlab command prompt, open the model.

open_system('ex_simrf_filter_lowpass_cheby_resp')

the constant block sets the amplitude of the 201 carrier signals to ones (1, 201). the inport block generates the 201 carrier frequencies for the mask value of logspace (7, 9, 201). generate an 11th order lowpass lc pi chebyshev filter by setting appropriate block parameters in the filter block.

the output signal from the filter block is fed into the outport block. the outport block is configured to give both magnitude and angle of the signal. the angle output is terminated using the terminator block. the magnitude output is squared and converted to db using math function and db conversion blocks.

to run the model, select simulation > run. you can also use the following command:

sim('ex_simrf_filter_lowpass_cheby_resp')

the model creates an out array in the matlab workspace. since the simulation stop time is set to 0, the frequency response corresponds to the steady state solution.

to plot the frequency response, use the following commands in the matlab command window.

 figure
 freq = logspace(7,9,201);
 h = semilogx(freq, out, '-gs', 'linewidth',1, 'markersize',3, 'markerfacecolor','r');
 xlabel('frequency [hz]');
 ylabel('amplitude [db]');
 title('frequency response of lowpass chebyshev filter');

you can also use the plot button in the visualization tab of the filter block parameters. set the frequency points to logspace (7, 9, 201) and x-axis scale to logarithmic to achieve a similar plot.

see also

filter | | |

related topics

网站地图