Lab3 Matlab Report
Lab3 Matlab Report
LAB EXERCISE:
1. Consider the signal x[n] or x(t). Define functions to perform
a) Amplitude scaling
b) Addition of signals
c) Shifting in time
d) Time Scaling
e) Shifting and scaling together
Inference:
By doing this, I learnt how to define and manipulate piecewise
functions in MATLAB, using loops and conditional statements. I also
understood amplitude scaling, where multiplying a function by a
scalar affects its vertical stretch. Here the assigned amplitude scaling
factor is 2, we find that the amplitude has been doubled, we also
note that the change is visible through the y-axis. Similarly addition
of signals with the common time range, implementation of time
shifting and time scaling to vary the position of the graph and to
change the time range of the graph respectively.