# Math Help - Data box.

1. ## Data box.

How do you create a data table with x and y values in Latex?

2. Originally Posted by integral
How do you create a data table with x and y values in Latex?

Simple math mode table:

$\begin{array}{|c||c|c|}\hline
\text{x value}&\text{y value}&\text{z value}\\ \hline\hline
1 &2.1&3.123\\ \hline
1.2& 1&3 \\ \hline
\end{array}$

produced with:

\begin{array}{|c||c|c|}\hline
\text{x value}&\text{y value}&\text{z value}\\ \hline\hline
1 &2.1&3.123\\ \hline
1.2& 1&3 \\ \hline
\end{array}

For more sophisticated approaches see here and here

CB