You are on page 1of 13

MAPÚA INSTITUTE OF TECHNOLOGY

SCHOOL OF EE-ECE-CoE
INTRAMUROS, MANILA

SIGNALS SPECTRA, AND SIGNAL PROCESSING


LABORATORY
Module No.: __2__

Introduction to Analog Signals

September 8, 2020 _ September 9, 2020


DATE PERFORMED D A T E SU B M I T T E D

Name: Nagayo, Paolo Manuel A.


Course/Sec: ECE107L/B4
Grade
Exercises

For these exercises, use the command window to enter your code, and save your answers to files
under your account on the central server. Plot all graphs required in the exercises.

1.) Generate the following signals and plot each one with respect to time.
a. 128 samples of sinusoid with frequency of 2000 Hz, amplitude of 0.8 sampling rate
is 800 Hz.

b. Repeat 1a with sampling frequency of 6000Hz, 4050Hz, and 3900Hz.


(6000Hz)

(4050Hz)
(3900Hz)
Is there a change in output waveforms? Yes.
Explain. Sampling frequency is inversely proportional to the period.
c. 250ms of an exponentially decaying signal with a time constant of 50ms; and
sampling rate is 1000Hz.
d. Compare the lengths of the signal in 1a, and 1c. Perform zero-padding at the end
of the signal with shorter length such that the two signals will have the same
length. Multiply the two signals. Plot and describe the resulting waveform.

The waveform is an exponentially decaying wave meeting at zero.

2.)
a. Create and plot a sine wave having fundamental frequency of 75Hz with 300
samples, amplitude of 2, and sampling rate of 8000Hz.
b. Add 10 harmonics to the fundamental, with amplitudes of 1/k where k = harmonic
number. Plot and describe the resulting waveform.

c. Add 10 odd harmonics to the fundamental, with amplitudes of 1/k where k =


harmonic number. Plot and describe the resulting waveform.
d. Add 10 odd harmonics to the fundamental, with amplitudes of (-1)m/k2 where k =
harmonic number and m=((k-1)/2)2. Plot and describe the resulting waveform.

3.) Plot following 3-D figures below. Save display on your respective group folder. Let your
instructor check result of 3D plotting for verification.

a. Generate the x and y coordinates using meshgrid with range from -3π to 3π
and increment of 0.1. Solve sinc(R) with R=sqrt(x.^2+y.^2). Display 3d graph of
sinc function using plot3 command. Hint: sinc(R)=sin(R)./R.
Syntax:

>> [x,y]=meshgrid(-3*pi:0.1:3*pi);
>> R=sqrt(x.^2+y.^2);
>> z=(sin(R))./R;
>> plot3(x,y,z)
Describe the output waveform.

The output looks like waves that you see when you dropped a pebble in the middle of a
pond, but the detail seemed more solid.

b. Using same sinc(R) result in 3a, plot 3d graph using contour3 command with
30 contour levels.
Syntax:

>> [x,y]=meshgrid(-3*pi:0.1:3*pi);
>> R=sqrt(x.^2+y.^2);
>> z=(sin(R))./R;
>> contour3(x,y,z)

Copy graph to data sheet. Describe the output waveform.

It has the same output, but only a certain part of the output is shown on one line, making
it look incomplete.

c. Generate polar coordinate (z) of complex grid using the command cplxgrid
with 30 grids. Display the complex functions using cplxmap command.
i. f(z) = (z.^5) .^(1/8)
Syntax:

>> z=cplxgrid(30);

>> x=(z.^5).^(1/8);cplxmap(z,x)

Copy graph to data sheet. Describe the output waveform.

Looks like an inverted but sloppy cone.

ii. f(z) = tan-1(2*z)


Syntax:
>> z=cplxgrid(30);
>> x=atan(2*z);
>> cplxmap(z,x)

Copy graph to data sheet. Describe the output waveform.


To be honest, I don’t know what this looks like, even if it’s only perspective viewing.

Discussion

State what you have learned from this experiment. Discuss theoretical concepts that are directly
related to this experiment. Give emphasis to concepts that can be used in real life applications.

Conclusion and Recommendation

Provide feedback on experiment objectives. State whether all objectives are met or not. Student
feedback is highly appreciated. Please provide input or recommendation to improve our
experiment.

You might also like