function spectra(omega, FC)
% SPECTRA(OMEGA,FC) plots the magnitude and phase spectra of a
% Fourier-analyzed periodic signal. 
%
% Input:
% ------
%    omega [1xN] : the harmonic frequencies
%    FC    [1xN] : the Fourier Coefficients
% 
% Output:
% -------
%     -
% 
% Example:    k = -10:1:10;       % Ten harmonics
%             w0 = 2*pi;          % Fundamental frequency
%             omega = k*w0;       % Harmonic frequecies
%             Xk = j./(2*pi*k);   % Fourier Coefficients (ex.)
%             spectra(omega, Xk); % Plot! :-)
%
% @ G. P. Kafentzis, CSD, UoC, 2007.

figure; stem(omega, abs(FC));
title('Magnitude Spectrum |X[k]|');
xlabel('Frequency (rad/sec)'); ylabel('Magnitude');
figure; stem(omega, angle(FC));
title('Phase Spectrum <X[k]');
xlabel('Frequency (rad/sec)'); ylabel('Phase (rad)');