Question

in MATLAB plot the following

EXAMPLE 4.2 Fourier series of a square wave Consider the square wave of Figure 4.4. This signal is common in physical systems

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

2. KTT k-even2V 2 V ートJ丿 2 2.V

Code:

clc;clear all;close all;
t=0:0.1:4*pi;
y1=sin(t)*(2/pi);
y3=sin(t)*(2/pi)+sin(3*t)*(2/(3*pi));
y5=sin(t)*(2/pi)+sin(3*t)*(2/(3*pi))+sin(5*t)*(2/(5*pi));
y7=sin(t)*(2/pi)+sin(3*t)*(2/(3*pi))+sin(5*t)*(2/(5*pi))+sin(7*t)*(2/(7*pi));
plot(t,y1,t,y3,t,y5,t,y7),hold on;
x=square(t);
%plot(x,t),hold off;
plot(t,x),hold off;
plot(t,y1,t,y3,t,y5,t,y7,t,x)
%grid on
legend('n=1','n=3','n=5','n=7','f(t)')


MATLAB FOUIRER SERIES REPRESENTATION:

n-1 0.2 0.6 0.8 10 12

Add a comment
Know the answer?
Add Answer to:
EXAMPLE 4.2 Fourier series of a square wave Consider the square wave of Figure 4.4. This signal i...
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