function class06()
%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; Fs = 1/Ts;

n = 1;


fnc{n} = @stem; x{n} = -2:Ts:10; y{n} = (2).^(x{n}).*(x{n} > 0);
xlbl{n} = 'n'; ylbl{n} = 'x[n]';  axis{n} = [-2 10 -6 1000]; figwidth{n} = 6.66666;
caption{n} = 'Illustration of $z^{-n} = \sigma^{-n} e^{-j \omega n}$ for $\omega=0$ and $\sigma=2$.';
n = n + 1; 

fnc{n} = @plot; x{n} = [[-0.5; nan] [1; nan] ];    y{n} = [[0; nan] [0; nan]];
xlbl{n} = 'Re'; ylbl{n} = 'Im'; ynum{n} = false;  
markersize{n} = 10; axis{n} = [-2 2 -2 2];
pzzplot{n} = true; roc{n} = 0; figwidth{n} = 3.33; figheight{n} = 2.8;
caption{n} = 'Pole-zero plot with a pole at $z=-0.5$ and a zero at $z=1$.';
n = n + 1;

fnc{n} = @plot; x{n} = [[-0.5; 0; 0; nan] [nan; nan; nan; nan] ];    y{n} = [[0; 1; -1; nan] [nan; nan; nan; nan]];
xlbl{n} = 'Re'; ylbl{n} = 'Im'; ynum{n} = false;  
markersize{n} = 10; axis{n} = [-2 2 -2 2];
pzzplot{n} = true; roc{n} = 0;  figwidth{n} = 3.33; figheight{n} = 2.8;
caption{n} = 'Pole-zero plot with poles at $z=-0.5$, $z=j$, and $z=-j$.';
n = n + 1;

% fnc{n} = @plot; x{n} = [[-0.5; nan] [1; nan] ];    y{n} = [[0; nan] [0; nan]];
% xlbl{n} = 'Re'; ylbl{n} = 'Im'; ynum{n} = false;  
% markersize{n} = 10; axis{n} = [-2 2 -2 2];
% pzzplot{n} = true; roc{n} = 1;  figwidth{n} = 3.33; figheight{n} = 2.8;
% caption{n} = 'Causal region of convergence (dark grey area) for a system with a pole at $z=-0.5$ and a zero at $z=1$.';
% n = n + 1;
% 
% fnc{n} = @plot; x{n} = [[-0.5; 0; 0; nan] [nan; nan; nan; nan] ];    y{n} = [[0; 1.5; -1.5; nan] [nan; nan; nan; nan]];
% xlbl{n} = 'Re'; ylbl{n} = 'Im'; ynum{n} = false;  
% markersize{n} = 10; axis{n} = [-2 2 -2 2];
% pzzplot{n} = true; roc{n} = [1 -1 -1]; figwidth{n} = 3.33; figheight{n} = 2.8;
% caption{n} = 'Region of convergence (dark grey area) for a system with a pole at $z=-0.5$ (causal) and poles at $z=j$ (anti-causal) and $z=-j$ (anti-causal).';
% 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

