File Exchange

image thumbnail

Waveform Fourier series (Formas de onda series de Fourier)

version 1.1 (2.46 KB) by Bastian Arturo Romero Mardones
With this function you can obtain components of Fourier series of most commonly waveforms.

7 Downloads

Updated 13 Nov 2020

View License

With this function you can obtain the plus components of Fourier series of most commonly waveforms.

Predeterminate waveform is rectangular waveform 'rect'.

This function return different components in signal matrix, component can be only one, or multiples.
For example:

[signal, time] = wff(2, sampling, frecuency); The signal matrix has the sum of 2 components Fourier series of rectangular wave form.

[signal, time] = wff([1:12], sampling, frecuency); The signal matrix has the fundamental component, and the sum of each of the components from 2 to 12 separately.

[signal, time] = wff([5 10 100], sampling, frecuency); The signal matrix has the sum of components 5, 10 and 15 separately.

You can change the waveform to decompose, by one these:

'square' --> square signal without mean value.
'square2' --> Other square signal.
'triang' --> Triangular signal with discontinuities.
'triang2' --> Triangular signal without discontinuities.
'sawtooth' --> Sawtooth signal.
'sinHw' --> Half wave sine
'sinFw' --> Ful wave sine

Examples:

[signal, time] = wff([5 10 100], sampling, frecuency,'triang');
[signal, time] = wff([5 10 100], sampling, frecuency,'sinHw');

By default this function shows a graph, if you do not want it add one more argument, for example:

[signal, time] = wff([5 10 100], sampling, frecuency,'sinHw',1);

Cite As

Bastian Arturo Romero Mardones (2021). Waveform Fourier series (Formas de onda series de Fourier) (https://www.mathworks.com/matlabcentral/fileexchange/82783-waveform-fourier-series-formas-de-onda-series-de-fourier), MATLAB Central File Exchange. Retrieved .

C. K. Alexander and M. N. O. Sadiku, “Fundamentals of Electric Circuits,” McGraw-Hill, New York, 2000. (Chapter 17)

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!