Beruflich Dokumente
Kultur Dokumente
Experiment #4
Generation of Sequence
2x2 box
Submitted by:
Bobis, Daniel D.
Submitted to:
Engr. Mark Nelson E. Pangilinan
Date:
July 19, 2017
I. Intended Learning Outcomes
1. Familiarize oneself with the basic commands in MATLAB.
II. Discussion
The purpose of this exercise is to familiarize you with the basic commands in
MATLAB for signal generation and for plotting the generated signal. MATLAB has been
designed to operate on data stored as vectors or matrices. For our purposes, sequences
will be stored as vectors. Therefore, all signals are limited to being causal and of finite
length.
with the arrow indicates the sample at time index n = 0 which will serve as our reference.
However in MATLAB, we cannot have information about the sample position directly
from this row vector. Therefore, to completely define discrete-time signals in MATLAB,
we need to define two row vectors, one for x(n) and another one for n. For example, to
define the sequence
Q2.2
A. A unit sample sequence of length 10 from 0 n 9
B. The same unit sample sequence in (a) delayed by five samples
Q2.4 Define the following unit step sequences and plot the results in MATLAB
c. x(n) = (1.9)n
Q2.7 Use the script
>> n =[0:10]; x=exp((2+3i)*n);
and plot the real, imaginary, magnitude and phase of this signal. Plot them on the spaces
provided below. Comment on the outcome of the plots.
Q 2.8 Use MATLAB to define the signal
for 0 n 10 and plot the resulting waveform below.
Q2.9
Random Sequence:
V. Conclusion:
I therefore conclude that this experiment taught me with the basic commands in
MATLAB for signal generation and for plotting the generated signal.