在表格中新增 3 個多列

在表格中新增 3 個多列

我之前已經發布過這段程式碼。我現在想將兩個多列顛倒添加到同一張表中,就像我在表圖片之前和之後標記的那樣,以明確我的觀點在嵌套/倒置多列之前

新增嵌套/倒置多列後(我需要在繪製那些黑框的地方添加多列) 這是我發布的 1 號圖片的代碼

\documentclass[期刊]{IEEEtran}

\usepackage{multicol}

\usepackage{多行}

\開始{表*}

\settowidth\rotheadsize{DIMENSIONS}

\renewcommand\multirowsetup{\centering}

\renewcommand{\arraystretch}{1.5}

    \centering

\caption{Extreme Learning Machine(ELM) with kernel classifier accuracy of 

combine reduced feature vectors whose individual classifier accuracy was low}

    \begin{tabular}{|l|l| c |C{2.5cm}| c |C{2.5cm}|C{2cm}|C{2.5cm}|}

    \hline 

Algorithm

    & Dimension

        &  \multirow{6}{*}{\rothead{ADD THESE\\ DIMENSIONS}}

            & Total after Adding Dimensions

                & Classifier

                    & Dimension Reduction Technique

                        & Reduced Dimension

                            & Accuracy  \\ 

    \cline{1-2} \cline{4-8}

LBP & 4D    &

                & \multirow{5}{=}{4D + 6D + 4D\\ + 3D + 4D = 21D}

                    & ELM

                        & \multirow{5}{=}{Eigenvalue as Dimension Estimator,

                                          PCA as Dimension Reduction}
                            & \multirow{5}{=}{21 dimensions reduced to 

dimensions}
                                & \multirow{5}{=}{Combine accuracy of 9 
dimensional
                                                  reduced Feature Vector is 
again 80\%}    \\

    \cline{1-2} \cline{5-5}

RGLBP         & 6D    &   &   & ELM   &   &   &   \\

    \cline{1-2} \cline{5-5}

BDIP   & 4D    &   &   & ELM   &   &   &   \\

    \cline{1-2} \cline{5-5}

HOG      & 3D    &   &   & ELM   &   &   &   \\

    \cline{1-2} \cline{5-5}

Combine and reduced     & 4D    &   &   & ELM   &   &   &    \\ 

 fv of poor individual  &       &   &   &       &   &   &  \\ 

  accuracy algorithms   &       &   &   &       &   &   & \\  

    \hline

\end{tabular}

\label{table:table6}

\end{table*}

答案1

由於您沒有提供可編譯的 mwe,我使用我的答案對於您之前的類似問題,請展示如何製作「多段落」多行單元格的原理。其中「段落」可以透過\newline命令(僅)在其自身之間分隔。對於它們之間的小垂直空間,似乎需要 \smallskip在 `\newline 之前加上 ad 適當的措施:

\multirow{5}{=}{Correlation as Dimension Estimator,
                PCA as Dimension Reduction\smallskip\newline                                        
                Add Multicol here\smallskip\newline  
                Add Multicol here
                }

這應該很容易使用/添加到您的表中,對於我來說,完整的 mwe 是:

\documentclass[journal]{IEEEtran}
%\usepackage{array} % loaded twice
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{rotating}% added, for rothead
\usepackage{array, makecell, multirow, tabu}{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}% in this table is better use this definition

\begin{document}
    \begin{table*}
\settowidth\rotheadsize{DIMENSIONS}
\renewcommand\multirowsetup{\centering}
\renewcommand{\arraystretch}{1.5}
    \centering
\caption{Extreme Learning Machine(ELM) with kernel classifier having reduced dimension of feature vectors individual accuracy}
    \begin{tabular}{|l|l|c|C{2.5cm}|c|C{2.5cm}|C{2cm}|C{2.5cm}|}
    \hline
Algorithm
    & Dimension
        &  \multirow{6}{*}{\rothead{ADD THESE\\ DIMENSIONS}}
            & Total after Adding Dimensions
                & Classifier
                    & Dimension Reduction Technique
                        & Reduced Dimension
                            & Accuracy  \\
    \cline{1-2} \cline{4-8}
CDF & 4D    &
                & \multirow{5}{=}{4D + 4D + 4D\\ + 7D + 7D = 26D}
                    & ELM
                        & \multirow{5}{=}{Correlation as Dimension Estimator,
                                          PCA as Dimension Reduction\smallskip\newline
                                          Add Multicol here\smallskip\newline
                                          Add Multicol here
                                          }
                            & \multirow{5}{=}{26 dimensions reduced to 4 dimensions}
                                & \multirow{5}{=}{Combine accuracy of 4 dimensional
                                                  reduced Feature Vector is 68\%\smallskip\newline
                                                  Add Multicol here\smallskip\newline
                                                  Add Multicol here
                                                  }    \\
    \cline{1-2} \cline{5-5}
GO          & 4D    &   &   & ELM   &   &   &   \\
    \cline{1-2} \cline{5-5}
Bilateral   & 4D    &   &   & ELM   &   &   &   \\
    \cline{1-2} \cline{5-5}
SLDFFO      & 7D    &   &   & ELM   &   &   &   \\
    \cline{1-2} \cline{5-5}
SSGSM       & 7D    &   &   & ELM   &   &   &   \\
    \hline
\end{tabular}
\end{table*}
\end{document}

這使:

在此輸入影像描述

相關內容