Fourier series

Generation of triangular wave in matlab

The following Matlab project contains the source code and Matlab examples used for generation of triangular wave. The usage is the same as sin(2*pi*f*t), but the triangular wave is generated with an amplitude between 0 and 1 function y = triangle(t) y = abs(mod((t+pi)/pi, 2)-1); This can be easily modified to be between -1 and 1: function y = triangle(t) y = abs(mod((t+pi)/pi, 2)-1)*2-1; .

Fourier Series Matlab Code

 Fourier series is a way to represent a wave-like function as a combination of simple sine waves. More formally, it decomposes any periodic function or periodic signal into the sum of a (possibly infinite) set of simple oscillating functions, namely sines and cosines (or, equivalently, complex exponentials).

Fourier Series

Fourier Series

Subscribe to RSS - Fourier series