Hi, Could you help me to know how I can text wrap in a multi row multi column table please? I used below lines. Unfortunately, it is not wrapping the words "Simulation" and "Experiment". I wish to get the table as shown in the picture attached (Table.png)
\documentclass[journal]{IEEEtran}
\usepackage{graphicx}
\usepackage{float}
\usepackage{array}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\usepackage{multirow}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
\usepackage[justification=centering]{caption}
\begin{document}
\begin{table*}[t]
\caption{Comparison between simulation and experimental results}
\begin{center}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{|M{1cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.6cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.7cm}|M{0.85cm}|M{0.85cm}|M{0.7cm}|M{0.7cm}|}
\hline
\multirow{2}{1cm}{\centering \textbf{Insolation Level (W/m\textsuperscript{2})}} & \multicolumn{2}{|M{1.4cm}|}{\textbf{Duty Cycle (\%)}} & \multicolumn{2}{|M{1.4cm}|}{\textbf{I\textsubscript{PV-PK-PK} (A)}} & \multicolumn{2}{|M{1.4cm}|}{\textbf{V\textsubscript{O-AVG} (V)}} & \multirow{2}{0.6cm}{\centering \textbf{P\textsubscript{MPP} (W)}} & \multicolumn{2}{|M{1.4cm}|}{\textbf{P\textsubscript{PV} (W)}} & \multicolumn{2}{|M{1.4cm}|}{\textbf{P\textsubscript{OUT} (W)}} & \multicolumn{2}{|M{1.7cm}|}{\textbf{Reduction in Power Extracted (\%)}} & \multicolumn{2}{|M{1.4cm}|}{\textbf{Converter Efficiency (\%)}}\\
\cline{2-7}
\cline{9-16}
& \textbf{Simulation} & \textbf{Experiment} & \textbf{Simulation} & \textbf{Experiment} & \textbf{Simulation} & \textbf{Experiment} & & \textbf{Simulation} & \textbf{Experiment} & \textbf{Simulation} & \textbf{Experiment} & \textbf{Simulation} & \textbf{Experiment} & \textbf{Simulation} & \textbf{Experiment}\\
\hline
1000 & 80.73 & 81.25 & 0.18 & 0.19 & 193.76 & 192.8 & 55.49 & 55.23 & 55.02 & 52.51 & 52.06 & 0.47 & 0.85 & 95.08 & 94.62\\
\hline
600 & 73.75 & 74.36 & 0.095 & 0.12 & 137.32 & 136.0 & 33.21 & 33.11 & 32.89 & 31.69 & 31.01 & 0.30 & 0.96 & 95.71 & 94.28\\
\hline
\end{tabular}
\label{tab}
\end{center}
\end{table*}
\end{document}
Graphics, Figures & Tables ⇒ Text wrapping in multi row multi column table
Text wrapping in multi row multi column table
- Attachments
-
- Table.png (18.05 KiB) Viewed 8558 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Text wrapping in multi row multi column table
Hi,
You may use a tabular , 2 row x 1 column, for cell simulation or experiment such as
\begin{tabular}{l}Simu\\lation \end{tabular
\begin{tabular}{l}Exper\\iment \end{tabular}
You may use a tabular , 2 row x 1 column, for cell simulation or experiment such as
\begin{tabular}{l}Simu\\lation \end{tabular
\begin{tabular}{l}Exper\\iment \end{tabular}