LaTeX forum ⇒ Graphics, Figures & TablesText wrapping in multi row multi column table

Information and discussion about graphics, figures & tables in LaTeX documents.
kiran_ym
Posts: 2
Joined: Mon Oct 28, 2019 6:16 am

Text wrapping in multi row multi column table

Postby kiran_ym » Mon Oct 28, 2019 8:09 am

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}
Attachments
Table.png
Table.png (18.05 KiB) Viewed 225 times

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: Google [Bot] and 6 guests