You are on page 1of 8

MAPÚA UNIVERSITY

SCHOOL OF EE–ECE-CoE
INTRAMUROS, MURALLA, MANILA

Advance Electronics Engineering Mathematics


Laboratory

Experiment No.6

Experiment Title:

Fourier Series

March 28, 2020 April 4, 2020


Date Performed Date Submitted

Name: Gamboa, Kurl Vincent P.


Course/Sec: ECEA106L – E03 Grade

Engr. Ernesto Vergara Jr.


Instructor
Interpretation of Result
In experiment 6: Fourier Series, examines the strategy for unraveling and characterizing the
capacities in an increasingly advantageous manner. MATLAB generally gives a simpler route since it
directs on tackling the issue, rather than figuring it physically. Shockingly, one factor that makes it not
extraordinarily prescribed to rely upon is that the MATLAB programming can't improve the
arrangement of the capacity since it needs to characterize the capacity inside given interims. Yet, with
MATLAB, the explained manual arrangement can be checked whether on the off chance that it is
correct or not. By seeing at the summation of the Fourier arrangement results given by the MATLAB
programming, one can foresee the example and, in this manner, detail a summed-up
summation/arrangement of a capacity.
Fourier series can be decided through a piecewise work. These two kinds of capacity involve
various approaches to tackle for their separate arrangement. The punctuations being executed in the
MATLAB programming for these two capacities must have an alternate methodology in ready to
perform and obtain the Fourier arrangement/summations of these two unique capacities.
From the information of the examination, the sentence structures of the m-record and from
the action are comparable and indistinguishable. a client characterized work is utilized to express an
occasional capacity with its relating period and interim. In the content record being made, Fourier
(F,T,n) is utilized to get out the capacity, where F alludes to the capacity, T alludes to the period, and n
alludes to the interims wherein the Fourier Series is being characterized certainly.
The students were able to execute the commands for every problem on the laboratory manual.
With MATLAB, several commands were able to perform on the given functions.
Conclusion
In experiment 6: Fourier Series, depicts the extension of an intermittent capacity regarding an
endless whole of sines and cosines. This incorporates four goals for the action; by characterizing the
hypothesis of Fourier arrangement, breaking down the occasional wave work attributes utilizing
Fourier arrangement, play out the use of MATLAB in figuring Fourier arrangement, and to develop a
content document for comprehending Fourier arrangement.
When settling physically, the strategy for Fourier arrangement will in general be a great deal
troublesome on account of its intricate technique for tackling it, which liable to cause a few mistakes
that prompts an off-base answer. With the help of MATLAB programming, it could be another
alternative on fathoming the capacities. In any case, one factor that makes it not accommodating is
that the product can't rearrange the arrangement of the capacity in an explanation that it needs to
characterize the capacity inside given interims. All things considered, it very well may be utilized to
check the response to the inquiry whether it is correct or not. In Fourier arrangement, it is the mix of
the underlying worth, cosine part, and sine segment of an intermittent capacity, where an elective
strategy must be used to characterize it. M-records or client characterized capacities were additionally
referenced in the examination. It reduces and rearranges the codes expected to execute the orders
and strategies.
References
Kreyszig, Erwin. (1983). Advanced engineering mathematics. New York :Wiley.
Houcque, D. (2005). Introduction To Matlab For Engineering Students (1.2 ed.).
Experiment 6 (PDS)
Fourier Series
1. Syntax:
>> syms x
>> pw=piecewise(x>-5 & x<0, 0, x>0 & x<5, 4)
>> a0 = int(pw,[5,5])
>> L=5
>> n = 1:10
>> k = 1*n
>> a = int(pw*cos(k*pi*x/L)/L,x,-L,L)
>> b = int(pw*sin(k*pi*x/L)/L,x,-L,L)
>> fs = a0 + sum(a.*(cos(k*pi*x/L)) + b.*(sin(k*pi*x/L)))

Answer:

(8*sin(pi*x))/(5*pi) + (8*sin((pi*x)/5))/pi + (8*sin((3*pi*x)/5))/(3*pi) +

(8*sin((7*pi*x)/5))/(7*pi) + (8*sin((9*pi*x)/5))/(9*pi)

2. Syntax:
>> syms f x m L n
>> f = 2*x.^2
>> n = 1: 5
>> L = pi
>> a0 = int(f/(2*L),x,-L,L)
>> m = 1*n

>> a = double(int(f*cos(m*pi*x/L)/L,x,-L,L))
>> b = int(f*sin(m*pi*x/L)/L,x,-L, L)
>> fs = a0 + sum (a.*(cos(m*pi*x/L))+b.*(sin(m*pi*x/L))
Answer:

2*cos(2*x) - (8*cos(3*x))/9 + cos(4*x)/2 - (8*cos(5*x))/25 - 8*cos(x) +


(2*pi^2)/3

3. Syntax:
>> syms x
>> pw=piecewise(x>-4 & x<0, -x, x>0 & x<4, x)
>> a0 = int(pw,[4,-4])
>> n = 1:8
>> k = 1*n
>> a = int(pw*cos(k*pi*x/L)/L,x,-L,L)
>> b = int(pw*sin(k*pi*x/L)/L,x,-L,L)
>> fs = a0 + sum(a.*(cos(k*pi*x/L)) + b.*(sin(k*pi*x/L)))

Answer:
- (4*cos(3*x))/(9*pi) - (4*cos(5*x))/(25*pi) -
(4*cos(7*x))/(49*pi) - (4*cos(x))/pi – 16)

Part 2.
Create an m-file that will solve the fourier series of a given periodic waveform. Use the
given functions in part 1 to test your created script file and compare the two
results(part1 versus part

You might also like