mason.gmu.edu/~szewari/ECE220_Lab1.pdf

re T >= T0.
IMPULSE(SYS) plots the impulse response of the LTI model SYS (created with either TF, ZPK, or SS).
PLOT Linear plot. PLOT(X,Y) plots vector Y versus vector X.
LINSPACE Linearly spaced vector. LINSPACE(x1, x2) generates a row vector of 100 linearly equally
spaced points between x1 and x2.
LSIM Simulate time response of LTI models to arbitrary inputs.
XLABEL('text') adds text beside the X-axis on the current axis.
YLABEL('text') adds text beside the Y-axis on the current axis.
TITLE('text') adds text at the top of the current axis.
GRID Grid lines.
EXP Exponential. EXP(X) is the exponential of the elements of X, e to the X.
SIN(X) is the sine of the elements of X.
ONES Ones array.

III. Procedure
M-files are created and used to do each part of the lab. The script files are attached.

IV. Results
The results of the script files are attached. Please see the following pages.


V.

Conclusion and Observations

The first part of the lab is the plot of a sine wave. It is noted that increasing or decreasing the amplitude A
has direct influence on the plot of the sine wave and that is an increase or decrease in its magnitude along
the y-axis. The phase of the sine wave also changes the shape of the sine wave. It shifts it origin. In the
second part of the lab, the graph is composed of both exponential graph and sine wave. Increasing the value
of the exponent, gives a shape is more close to exponential form. When the exponent is small, the shape of
the graph is like a sine wave that is decreasing in exponential way. In the third part of the lab, step function,
we can see that many different step functions can be added together. In the last part of the lab, response of
models, that is the output of the system, were plotted in response of the inputs of two different values. In the
first part we see that the response xout to the input x(t) is smaller than the input. In the third part, we see that
in output zout in response to the input z(t) is not the same step function.




Sayed Taher Zewari
Lab No. : 1

ECE-220 204

09/13/01