So I am building the code to perform a Fourier Series Expansion, specifically for the function e^(-x) for the domain of 0=<x<2.
My graph looks like this, I don't know how well you will be able to see it, but in essence my function e^(-x) starts at the beginning of the domain and not at 0.
If anybody knows how I can get the function to start at zero, any help would be appreciated.
syms x n s
f = exp(-x);
L = input('Please enter a value for the domain ');