UNIVERSITY OF WEST ATTICA
SCHOOL OF ENGINEERING
DEPARTMENT OF COMPUTER ENGINEERING AND INFORMATICS
Signals and Systems
Vasileios Evangelos Athanasiou
Student ID: 19390005
Supervisor: Adonis Bogris, Professor
Co-supervisor: Georgios Antoniou, Laboratory Teaching Staff
Athens, April 2021
This README provides an overview of the Analog Signals laboratory task completed for the Signals and Systems course at the University of West Attica.
| Section | Folder/File | Description |
|---|---|---|
| 1 | assign/ |
Assignment instructions and exercise description |
| 1.1 | assign/EXERCISE 2 - ANALOG SIGNALS.pdf |
Exercise instructions (English) |
| 1.2 | assign/ΑΣΚΗΣΗ 2 - ΑΝΑΛΟΓΙΚΑ ΣΗΜΑΤΑ.pdf |
Exercise instructions (Greek) |
| 2 | docs/ |
Documentation related to analog signals exercises |
| 2.1 | docs/Analog-Signals.pdf |
Analog signals documentation (English) |
| 2.2 | docs/Αναλογικά-Σήματα.pdf |
Analog signals documentation (Greek) |
| 3 | src/ |
MATLAB source code files for analog signals exercises |
| 3.1 | src/b1.m |
MATLAB script file |
| 3.2 | src/b2.m |
MATLAB script file |
| 3.3 | src/b3.m |
MATLAB script file |
| 3.4 | src/b4.m |
MATLAB script file |
| 3.5 | src/b5.m |
MATLAB script file |
| 3.6 | src/b6.m |
MATLAB script file |
| 3.7 | src/b7.m |
MATLAB script file |
| 3.8 | src/b8.m |
MATLAB script file |
| 4 | README.md |
Repository overview and usage instructions |
The objective was to plot the signal:
Two approaches were used:
Manual Method
- Interval
[-5, 10]divided into subintervals. - Arrays of zeros and ones manually constructed to model the signal behavior.
Heaviside Method
- MATLAB’s built-in
heavisidefunction was used to efficiently construct and plot the signal.
Plotting a sinusoidal signal modulated by both a ramp and a time window.
Signal definition:
[ x(t) = t \sin(2\pi t),(u(t) - u(t-3)) ]
Implementation details
- Time interval:
[0, 3] - Window generated using the square pulse
Visualization of a cosine oscillation within a limited pulse duration.
Signal:
Where the square pulse is defined as:
representing a pulse duration of T = 2.
Signal expression derived from a provided graphical representation:
The signal was plotted over:
to reproduce the original waveform characteristics.
Analysis of signal symmetry components.
Original signal:
Components computed:
- Original signal
- Even component
- Odd component
- Reconstruction (even + odd)
Displayed using MATLAB's subplot function in a 2×2 grid.
| Function | Purpose |
|---|---|
heaviside(t) |
Computes unit step function |
zeros() / ones() |
Creates arrays for manual signal construction |
plot(t, x) |
Generates signal plots |
ylim([min, max]) |
Controls plot vertical limits |
subplot(m, n, p) |
Displays multiple plots in one figure |
The laboratory task demonstrated practical implementation of step functions, windowed signals, oscillatory signals, and signal decomposition techniques using MATLAB visualization tools for analog signal analysis.
This guide explains how to install requirements and run the MATLAB exercises contained in this repository.
To run the project, you need:
- MATLAB installed on your system
(Any recent version should work; recommended R2020 or newer) - Basic familiarity with MATLAB scripts and workspace execution
Optional:
- Git (to clone the repository)
Open a terminal or command prompt and run:
git clone https://github.com/Signals-and-Systems-aka-Uniwa/Analog-Signals.git- Open the repository page in your browser.
- Click Code → Download ZIP.
- Extract the archive to a folder on your computer.
- Start MATLAB.
- Click Home → Set Path → Add Folder or:
- Use Set Current Folder in MATLAB.
- Navigate to the repository folder.
- Open the
src/directory.
Recommended folder:
Analog-Signals/src/Each exercise is implemented as MATLAB scripts. From MATLAB:
Double-click any script:
b1.m
b2.m
b3.m
b4.m
b5.m
b6.m
b7.m
b8.mand press Run.
Run scripts directly:
b1
b2
b3
b4
b5
b6
b7
b8Scripts rely on standard MATLAB functions such as:
heavisideplotsubplotzeros,onesylim
No external toolboxes are typically required beyond standard MATLAB functionality.
Running scripts will generate:
- Analog signal plots
- Windowed signals
- Oscillatory signals
- Signal decomposition plots
- Multiple subplot figures
- Plots appear automatically in MATLAB figure windows.
Ensure MATLAB current folder is:
Analog-Signals/src/Add folder to MATLAB path:
addpath(genpath(pwd))Ensure script execution completed without errors and figure windows are not hidden.
