# Digital Lab Processing

**Topics:**Digital signal processing, Signal processing, Sound

**Pages:**3 (553 words)

**Published:**August 28, 2013

Pilani Campus

Digital Signal Processing

Lab 2

(You are instructed to write solutions, plots, observations and explorations in your observation record and get it signed before leaving the lab)

[A] A sinusoidal signal s(t) is of frequency 1 Hz and peak amplitude of 1. 1. (i) Assume s(t) is sampled with sampling frequency of 10 Hz. Sub plot the samples of sinusoid for 4 sec . (ii) Now plot the continuous signals connecting these samples as the second sub plot.

2. (i) Assume s(t) is sampled with sampling frequency of 2 Hz. Plot the samples of sinusoid for 4 sec. (ii) Now plot the continuous signals connecting these samples as the second sub plot..

3. Note down your observations and explorations

[B] Plot a sound file, amplified and attenuated sound file in one plot using sub plot. Use the available audio file from the folder.

1. Use the auread command to load the file speech.au into Matlab. 2. Plot the signal on the screen as if it is a continuous-time signal (in top plot using sub plot). 3. Amplify the sound wave by a factor of 5 and plot below the first plot. 4. Attenuate the original sound wave by a factor of 5 and plot below the second plot. 5. Play the three signals via the digital-to-analog converter in your workstation with the Matlab sound function. 6. Note down your observations and explorations

[C] Follow the instructions given below:

1. Read the lena image in Tiff format from the folder given. 2. Display this image in gray scale as top plot in subplot of three. 3. Add some DC value of 100 and then display the image in gray scale as second plot in subplot of three. 4. Subtract some DC value of 100 from original image and then display the image in gray scale as third plot in subplot of three. 5. Note down your observations and explorations.

[D] The following matlab program is given. Find the mathematical expression for y in...

Please join StudyMode to read the full document