You are on page 1of 1

DCSE, UET Fall 2007 Batch 7 Data Communications (Lab) Lab 3 Matlab Task: Write Matlab Code 1.

Design a square wave having 30 harmonics with fundamental frequency of from the following signal: y = (4/pi)*sin(2*pi*f*t); 2. Add the White Gaussian noise in the above created square wave and plot both signals on the same graph. Comment on the result. (Note: Search Gaussian noise or AWGN in Matlab help) 3. Understand the effects of attenuation by attenuating one of the harmonics: take three harmonics, attenuate one of the harmonic by reducing its amplitude or strength, and add all three harmonics. Compare the resultant square wave with square wave generated by un-attenuated harmonics. Comment on the result. 4. Search in Matlab help the following functions: a. wavfinfo b. wavwrite c. wavplay d. wavread e. wavrecord

You might also like