I tried this code but the border lines are not deleted:
\begin{tabular}{|p{0.6in}|p{0.3in}|p{0.9in}|p{0.9in}|p{0.8in}|} \hline
& & & $P_{mot}$ & \\ \hline
$P_{batt}$ & & S & M & H \\ \hline
& S & S & Z & VS \\ \hline
SOC & M & M & Z & H \\ \hline
& H & M & Z & H \\ \hline
\end{tabular}
How do I delete the border of cells?
Best Answer
Welcome to TeX.SE! In order to merge rows or columns, you need to use
\multirow
(which requires themultirow
package) or\multicolumn
, respectively. And if you nest them, you need to do it in the right order.