Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
34 views12 pages

Signals Report

This report describes the steps taken in a MATLAB project to generate musical notes and filter signals. The project involved generating waveforms for notes, combining them into a signal, analyzing the signal's frequency spectrum, designing filters, and verifying Parseval's theorem holds. The report documents 25 steps taken and lists the contributors for groups of steps.

Uploaded by

Amr Hossam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views12 pages

Signals Report

This report describes the steps taken in a MATLAB project to generate musical notes and filter signals. The project involved generating waveforms for notes, combining them into a signal, analyzing the signal's frequency spectrum, designing filters, and verifying Parseval's theorem holds. The report documents 25 steps taken and lists the contributors for groups of steps.

Uploaded by

Amr Hossam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Design RepoRt

pRoject
ece251
fall 2023
Submitted by:
Mohamed Ahmed Esmat 21P0144

Saleh Ahmed Elsayed 21P0324

Youssef Mohamed Al-Sayyed 21P0094

Ahmed Hossam Eldin Ibrahim 21P0271

Abdallah Ahmed Hamdy Ibrahim 21P0333


Contents
1. Introduction ............................................................................................................................. 3
2. Step 1 ....................................................................................................................................... 3
3. Step 2 ....................................................................................................................................... 4
4. Step 3 ....................................................................................................................................... 4
5. Step 4 ....................................................................................................................................... 4
6. Step 5 ....................................................................................................................................... 4
7. Step 6 ....................................................................................................................................... 5
8. Step 7 ....................................................................................................................................... 5
9. Step 8 ....................................................................................................................................... 6
10. Step 9 ................................................................................................................................... 6
11. Step 10 ................................................................................................................................. 7
12. Step 11 ................................................................................................................................. 7
13. Step 12 ................................................................................................................................. 7
14. Step 13 ................................................................................................................................. 7
15. Step 14 ................................................................................................................................. 8
16. Step 15 ................................................................................................................................. 8
17. Step 16 ................................................................................................................................. 8
18. Step 17 ................................................................................................................................. 9
19. Step 18 ................................................................................................................................. 9
20. Step 19 ................................................................................................................................. 9
21. Step 20 ................................................................................................................................. 9
22. Step 21 ............................................................................................................................... 10
23. Step 22 ............................................................................................................................... 10
24. Step 23 ............................................................................................................................... 10
25. Step 24 ............................................................................................................................... 10
26. Step 25 ............................................................................................................................... 11
27. Contributions ..................................................................................................................... 11
1. Introduction
The aim of this MATLAB project is to dive through the usage of the MATLAB
and become familiar with it. The target was to generate different waves and
sounds of the musical notes provided using the signal concepts and with the
implementation of MATLAB commands

2. Step 1
These are the waveforms generated for (DO - RE - MI - FA) respectively:

The frequency sample was decided based on the Nyquist theorem as shown below:
3. Step 2
The Signal x(t) generated into the “output_signal.wav” file. Used the command audiowrite.

4. Step 3
Then x(t) was plotted into waveform after combining each of the musical notes
into one vector:

5. Step 4
Then computed the energy of x(t) using the below formula:

Here’s the energy:

6. Step 5
The frequency spectrum is now computed and stored in X(f) using fftshift as
shown below:
7. Step 6
We then plotted the frequency spectrum X(f):

8. Step 7
We computed the the Energy of the signal x(t) from its frequency spectrum
X(f)

We can see here that the energy of the signal in the time domain and the
frequency domain are equal hence, the Parseval’s theorem is verified.
9. Step 8
Then we designed a Butterworth low-pass filter with filter order 20 such that
when the signal x(t) is applied to this filter, the output does not contain the MI
and FA musical nodes and also calculated the cut-off frequency of this filter.

10. Step 9
We plotted the magnitude and phase response of the Butterworth LPF we
have designed.
11. Step 10
Then we applied the signal x(t) to this Butterworth LPF and denote the output
signal as y1(t)

12. Step 11
Store the generated signal y1(t) as an audio file with extension (*.wav)

13. Step 12
Plot the signal y1(t) versus time t.

14. Step 13
The energy of the signal y1(t)
15. Step 14
Computed The frequency spectrum of the signal y1(F)

16. Step 15
Plotted the magnitude of y1(F) in the frequency range -fs/2 <= F <= fs/2

17. Step 16
18. Step 17

19. Step 18

20. Step 19
We pass the signal y2 through our butterworth high pass filter

21. Step 20
22. Step 21
Plotting of Signal Y2(t) versus time (t):

23. Step 22
Energy Computation of the previous signal using the following formula:

Energy:

24. Step 23
Frequency Spectrum is computed using the following formula:

25. Step 24
The Frequency Spectrum was plotted within the given range -f s/2 < f < fs/2:
26. Step 25
Energy from the Frequency Spectrum was then computed using:

Energy:

Therefore Parseval’s Theorem was verified.


27. Contributions

Name Contributions

Mohamed Ahmed Esmat Steps 1 – 5 + report

Youssef Mohamed Al-Sayyed Steps 6 – 10 + report

Saleh Ahmed ElSayed Steps 11 – 15 + report

Ahmed Hossam Eldin Steps 16 – 20 + report

Abdallah Ahmed Hamdy Steps 21 – 25 + report

You might also like