You are on page 1of 3

College of Engineering

Electrical Engineering Department

Semester 432 (2022)

EE301– Homework #2
Signals and Systems Analysis
Submitted by

Student’s Name: Mahmoud Khalaf Alothman


PIN: 411116165

Instructor: Dr. Abdulaziz Alorf

Date: 28/5/2022
The first one I plot it depending on this code d = conv2(f,g,'same'); the convolution was directly

Figure 1 : f*g

As we can see here in figure 2 the result of first Q in time domain

Figure 2 : Result
Q2:
In this Question first, we convert the image to a frequency domain by using fft2();
After that, we do the multiplication because the convolution in the time domain converts to
multiplication in the frequency domain

Figure 3: multiplication of two images in f-domain

As we see here figure 4 has a problem I try hard to solve it but I read about the center of the
image so I did not find code for that so I put this with knowledge about some mistake

Figure 4: Result
We can see here we need some code for recentering the image
Q3:
err = immse(time domain , frequency domain);
fprintf('\n The mean-squared error is %0.4f\n', err);

we write this code after we get the perfect result from figure 4

You might also like