1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
svet-max [94.6K]
3 years ago
14

Use the provided MATLAB program (fourier_synthesis.m) to generate 4 plots the Fourier series approximations of the signals from

problem 5 (3.22 in the text parts (a,b,e,f)). For each of the four plots, show the functions obtained by using 3, 5, 7, and 15 coefficients, ak, from the Fourier series to approximate the provided function x(t). Note You should add coefficients starting at a0 and then add coefficients that are complex conjugates of one another (since these are real-valued functions), e.g., the plot with 3 coefficients will include a0, ak0, a−k0. For some plots the average value, i.e., a0, may be equal to 0 (3.22(a,e)).

Computers and Technology
1 answer:
storchak [24]3 years ago
4 0

Explanation:

With the Fourier series approximation we can represent any function with just sine and cosine waves having different frequencies. As we increase the number of harmonics the approximation gets closer and closer to the real function.

Matlab Code:

% time vector

t=0:0.001:6;  

f=0;

% run a for loop for the summation of harmonics, it will skip for n = even because the Fourier coefficients of a square wave are zero for n = even  

for n=1:2:15;  

% the Fourier representation of square wave you can change this function as required

f=f+((2/(n*pi))*sin(n*pi*t));  

% plot a graph when number of harmonics are 3

if n==3  

f1=f;

% 2 rows and 2 columns total 4 plots

subplot(2,2,1);

% increased line width with red color  

plot(t,f1,'r','Linewidth',2)

grid on

title('n = 3')

xlabel('Time')

ylabel('Amplitude')

axis tight

end

% plot a graph when number of harmonics are 5

if n==5  

f1=f;

subplot(2,2,2);

% increased line width with blue color  

plot(t,f1,'b','Linewidth',2)

grid on

title('n = 5 ')

xlabel('Time')

ylabel('Amplitude')

axis tight

end

% plot a graph when number of harmonics are 7

if n==7  

f1=f;

subplot(2,2,3);

% increased line width with magenta color  

plot(t,f1,'m','Linewidth',2)

grid on

title('n = 7')

xlabel('Time')

ylabel('Amplitude')

axis tight

end

% plot a graph when number of harmonics are 15

if n==15  

f1=f;

subplot(2,2,4);

% increased line width with black color  

plot(t,f1,'k','Linewidth',2)

grid on

title('n = 15')

xlabel('Time')

ylabel('Amplitude')

axis tight

end

end

Output:

Please refer to the attached plot, as you can see in the attached graph as we are increasing the number of harmonics, the plot is getting more and more closer to a square wave. This is the beauty of Fourier series.

You might be interested in
_____ are the younger edge of gen y who have never lived without the internet or easy access to cell phones.
Sophie [7]

Generation Y are the people age 14-37, which means they are born 1977 - 2000.<span /><span>Tweens are the younger edge of gen Y who have never lived without the internet or easy access to cell phones.</span>
<span /><span>
</span>
8 0
3 years ago
Which of the following examples illustrates the Crowding Out Effect?
maks197457 [2]

your answer is c to what your looking for



6 0
3 years ago
A program that runs each line one at a time in order is called?
Oksi-84 [34.3K]

the answer is a one liner program

5 0
2 years ago
Which of the following best explains why property rights are necessary in a
11Alexandr11 [23.1K]

Answer:

A. Property rights allow consumers and producers to make free

choices.

Explanation:

If the consumers and the producers have the properties, then only they can say that well this is free for you, or in other words, can make the free choices. And by no means market forces only work when everyone owns some property, as some also cannot have the property, and hence work hard to earn some property, and thus the Market force does work. And the laws have nothing to do with the free market or the non-free market. And as we saw above, the competition can exist if someone owns the property, and others do not. Hence, the correct answer is A.

5 0
4 years ago
Lai worked on a global team for an American company, and all her work had to be completed in her second language, English. Somet
N76 [4]

Answer:

E) Encoding.

Explanation:

Communication is important aspect of life.Communication barriers occurs at all stages of communication from when the sender sends the message to the receiver receiving the message. Lack of communication skill in that particular comes in encoding barrier.So we conclude that the answer is Encoding.

4 0
4 years ago
Read 2 more answers
Other questions:
  • Write a second convertToInches() with two double parameters, numFeet and numInches, that returns the total number of inches. Ex:
    10·1 answer
  • What is the only language a microprocessor can process directly but most programmers almost never write programs in this code?
    5·1 answer
  • Why do clocks tick-toc?
    5·2 answers
  • How could you insert a new row between rows 20 and 21?
    10·2 answers
  • . The incorrect attitude towards driving is the cause of most collisions among teenage drivers.
    13·2 answers
  • Okay, guys, I know this one will be very hard however while trying to finish this assignment I got overwhelmed and lost by the s
    9·1 answer
  • What are the four different orchestral instrument families?
    6·2 answers
  • You are responsible for creating a shared file system to support a new branch office. The manager has requested shared locations
    13·1 answer
  • Write long answer to the following question. a. Define microcomputer. Explain the types of microcomputers in detail.​
    5·2 answers
  • A for construct is a loop construct that processes a specified list of objects. As a result, it is executed as long as there are
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!