You are on page 1of 1

Results and Discussion

In the experiment and given machine problem, MATLABs computing power exploitation focused
on its capability to plot signals. In this case, discrete-time signals. MATLAB, as shown, can process discrete-
time signals using vectors representing the value of the signal with respect to a discrete time interval.

The experiment dealt with familiar waveforms such as the sawtooth and the square wave signal
but only as a discrete-time signal. These discrete-time signals are manipulated through manipulating the
vectors that represent these signals.

For the first machine problem, the task is to plot the three elementary discrete-time signals: unit
impulse, unit step, and the unit ramp. Plotting the signals has been made possible using the stem
command which does a stem plot of the signal/sequence (to represent discrete-time signal). To plot the
unit impulse sequence, (n), a zero matrix with dimension 1 x n is made. n here is a user input that is the
lower limit of the signal and another zero matrix with dimension 1 x n with n as the upper limit of the
signal. The matrices are concatenated, with an element 1 in the middle ((0)=1), to create the unit
impulse. For the unit step sequence, u(n), similar steps has been made but only one zero matrix is done
to have zero value for n<0 and a row vector with elements equal to one (for u(n)=1; n0) concatenated
with each other. The unit ramp is also made by the similar process. A zero matrix (for n < 0) is concatenated
with matrix containing appropriate values for n 0.

The second machine problem deals with signal manipulation with a given finite sequence. An m-
file is created in order to have a laid out syntax for manipulating the given sequence. The decimation
process is made through manipulating the time vector. After this manipulation, a for loop is made to
check these manipulated time vector. Since MATLAB does not accept negative values as an assignment to
an element in the matrix, a manual check is needed, thus, explaining the purpose of the if conditions on
the script.

As a sum-up, signal manipulation through vector operations is a function of MATLAB that is a very
powerful tool for digital signal processing. This allows further analysis of signals through the software.

You might also like