clear;
clc;

%% PARAMETERS %%
N = ...; % set it to 1,2,5,10,100
t = linspace(0, 20, 200); % plot from 0 to 20 (200 points)
T_N = zeros(1, 200); % initialize the approximated function

%% FOURIER %%
for n = 0:1:N
    % Add conditions like
    % if(n == 0)
    %   A_n = 0; B_n = 2;
    % end
    
    % To check whether it is a multiple of 2 or not use 
    % the mod function (negation => ~)
    % if(mod(n,2)) 
    %   n is odd
    % end
    % 
    % if(~mod(n,2))
    %   n is even
    % end
    
    A_n = ...; % TODO %
    B_n = ...; % TODO %
    
    T_N = T_N + A_n*cos(n*t) + B_n*sin(n*t);
end

%% PLOT %%
plot(t, T_N, 'r');
title('Functional Approximation of f(t)');
xlabel('t');
ylabel('T_N(t)');