Question

Implement Matlab code for the periodic signals given by their Fourier Series approximation as follows: 100 k=-100 100 E2 sine

in Matlab

0 0
Add a comment Improve this question Transcribed image text
Answer #1

`Hey,

Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries

clear all
clc
t=0:0.01:2*pi;
for i=1:length(t)
x1(i)=0;
for k=-100:100
x1(i)=x1(i)+j*k*exp(-abs(k))*exp(j*k*2*pi*t(i)/50);
end
x2(i)=0;
for k=-100:100
x2(i)=x2(i)+abs(sin(k*pi/2))*exp(j*k*2*pi*t(i)/50);
end
end
plot(t,real(x1),t,real(x2));
title('Real part plot');
legend('x1(t)','x2(t)');
figure;
plot(t,imag(x1),t,imag(x2));
title('Imaginary part plot');
legend('x1(t)','x2(t)');

MATLAB R2018a Figure 2 Log In Figure Eile Edit View Insert Tools Desktop Window Help Eile Edit View Insert Iools Desktop Wind

Kindly revert for any queries

Thanks.

Add a comment
Know the answer?
Add Answer to:
in Matlab Implement Matlab code for the periodic signals given by their Fourier Series approximation as...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT