Code covered by the BSD License  

Highlights from
fourier series calculator

image thumbnail
from fourier series calculator by Amin Bashi
initiates a GUI that graphs a function against the nth partial sum of its Fourier series

fx(x)
function y = fx(x)
i = find((x > -pi) & (x <= 0));
y = 2*x;
y(i) = 0;
y(1) = y(end);

Contact us at files@mathworks.com