{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

MATLAB Example – Simulating the Speech Scrambler

# 2 you would use axis07000012 you can also label the

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: use the command: [H,w]=freqz(h,1,512); This command creates the frequency response H of the DT filter having impulse response h. The frequency response is calculated at 512 angular frequencies in the range 0 ≤ ω ≤ π , with frequencies stored in the vector w. Recall that F = ω / 2π and that we have the CT- DT frequency relation f = F / Ts . So, to plot the filter’s CT magnitude response vs. f, set f=(1/(2*pi*Ts))*w; plot(f,abs(H)) Note that you can use the axis command to adjust the horizontal and vertical axis limits in the plot – for example, to view the plot on the frequency range 0 – 7000 Hz and amplitude range 0 – 1.2, you would use axis([0,7000,0,1.2]) You can also label the plot axes – for example, xlabel(‘f’) ylabel(‘|H(f)|’) The plot is shown below. To bandlimit our speech signal to 5 kHz, we apply the filter we created...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern