function class09()
%CLASS02  Displays plots for ECE 3500 class
%   CLASS02()  creates all the plots for class lecture notes through the
%   use of Dr. Harley's plotforclass MATLAB function. To get the full
%   results from the lecture notes, this function requires the "export_fig"
%   and "oaxes" functions from the MathWorks File Exchange. 
%
%   INPUTS: none
%
%   OUTPUTS: none
%
%   see also: plot, stem, subplot, figure

close all;

addpath('../matlab/altmany-export_fig-8016f6a')
addpath('../matlab/')
namebase = ['./' ];

Ts = 1/100; Fs = 1/Ts;

n = 1;


fnc{n} = @plot; x{n} = -2:Ts:10; y{n} = 1/3*cos(2*pi*x{n}) + 1/3*cos(2*2*pi*x{n}) + 1/3*cos(2*pi*x{n}/4);
xlbl{n} = 't'; ylbl{n} = 'x(t) = x_1(t) + x_2(t) + x_3(t)';  axis{n} = [-2 10 -1 1]; figwidth{n} = 6.66666;
caption{n} = 'Signal consisting of three basis components.';
n = n + 1; 

fnc{n} = @plot; x{n} = -2:Ts:10; y{n} = 1/3*cos(2*pi*x{n});
xlbl{n} = 't'; ylbl{n} = 'x_1(t)';  axis{n} = [-2 10 -1 1]; figwidth{n} = 6.66666;
caption{n} = 'First component.';
n = n + 1; 

fnc{n} = @plot; x{n} = -2:Ts:10; y{n} = 1/3*cos(2*2*pi*x{n});
xlbl{n} = 't'; ylbl{n} = 'x_2(t)';  axis{n} = [-2 10 -1 1]; figwidth{n} = 6.66666;
caption{n} = 'Second component.';
n = n + 1; 

fnc{n} = @plot; x{n} = -2:Ts:10; y{n} = 1/3*cos(2*pi*x{n}/4);
xlbl{n} = 't'; ylbl{n} = 'x_3(t)';  axis{n} = [-2 10 -1 1]; figwidth{n} = 6.66666;
caption{n} = 'Third component.';
n = n + 1; 


pltopt{n} = [];
figheight{n} = [];
axis{n} = [];
figwidth{n} = [];
hideticks{n} = [];
marker{n} = [];
markersize{n} = [];
xTickPrefix{n} = [];
xTickSuffix{n} = [];
yTickPrefix{n} = [];
yTickSuffix{n} = [];
LineStyleOrder{n} = [];
ynum{n} = [];
pzplot{n} = [];
pzzplot{n} = [];
roc{n} = [];
caption{n} = [];

for n = 1:length(x)
    plotforclass( 'fnc', fnc{n}, 'x', x{n}, 'y', y{n}, ...
                  'flname', [namebase 'fig' num2str(n, '%03u')], ...
                  'xlbl', xlbl{n}, 'ylbl', ylbl{n}, 'figwidth', figwidth{n}, ...
                  'hideticks', hideticks{n}, 'marker', marker{n}, ...
                  'markersize', markersize{n}, 'axis', axis{n}, ...
                  'xTickPrefix', xTickPrefix{n}, 'yTickPrefix', yTickPrefix{n}, ...
                  'yTickSuffix', yTickSuffix{n}, 'figheight', figheight{n}, ...
                  'xTickSuffix', xTickSuffix{n}, 'LineStyleOrder', LineStyleOrder{n}, ...
                  'pltopt', pltopt{n}, 'ynum', ynum{n}, 'pzplot', pzplot{n}, ...
                  'pzzplot', pzzplot{n}, 'roc', roc{n}, 'caption', caption{n},...
                  'captionFile', [namebase 'caption' num2str(n, '%03u') '.html']);
end


end

