\chapter{TABULAR ENVIRONMENT}
\graphicspath{{Chapter4/Chapter4_Figures/}}


Information in the form of a matrix or table is created using the tabular environment. The following sections give you ways to create tables. 

\section{Simple table}

Table \ref{Tab1} has two columns and a few rows. Values in each column can be left-aligned, right-aligned or centered. Sequence of rows are created using $\backslash\backslash$ commands. Each row is a sequence of items separated by \& character. $\backslash$hline is used to draw horizontal lines whereas $|$ draws vertical lines in the entire environment. 

\begin{table}
\caption{\label{Tab1}Simple table}
\begin{center}
\begin{tabular}{|l|r|} \hline
Parameter         & Value      \\ \hline \hline
$\alpha$          & 0.9        \\ \hline
$\beta$           & 100        \\ \hline
$\gamma$          & 0.5        \\ \hline
$\eta$            & 0.1        \\ \hline
\end{tabular}
\end{center}
\end{table}

\section{Table with more formatting}

Table \ref{Tab2} has some additional features for formatting. It incorporates the multirow and multicolumn features. 

\begin{table}
\caption{\label{Tab2}Table with more formatting features}
\begin{center}
\begin{tabular}{|c|c|r|r|r|r|}\hline 
\multirow{2}{*}{Sl. No} &\multirow{2}{*}{Parameter} 
&\multicolumn{4}{c|}{Output Values}\\ \cline{3-6} 
& &Case 1 &Case 2 &Case 3 &Case 4 \\ \hline \hline
\multirow{4}{*}{1} & A & 21 & 19 & 16 & 14  \\
                   & B & 25 & 18 & 16 & 12  \\
                   & C & 47 & 26 & 14 & 10  \\
                   & D & 16 & 14 & 13 & 10  \\ \hline
\multirow{4}{*}{2} & A & 15 & 15 & 14 & 13  \\
                   & B & 18 & 17 & 16 & 16  \\
                   & C & 66 & 41 & 28 & 19  \\
                   & D & 15 & 14 & 14 & 13  \\ \hline
\end{tabular}
\end{center}
\end{table}

%------------------------------------------------------------------------- 
