错误是
未定义控制序列。
以下是代码:
\begin{table}[htb!!]
\center
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\multicolumn{2}{|c|}{Experiment} & Initial tip deflection & frequency $\omega$ & base acceleration $a_b$ & Magnet gap $\delta$ \\
\hline
TC 1 &
\begin{tabular}{c}a \\ b\end{tabular} & \begin{tabular}{c} $10^{-3}\ mm$ \\ $5\ mm$\end{tabular} & Uniform $\in [9,14]\ Hz$ & $1\ m/s^2$ & $50\ mm$ \\
\hline
TC 2 &
\begin{tabular}{c}a \\ b\end{tabular} & \begin{tabular}{c} $10^{-3}\ mm$ \\ $5\ mm$\end{tabular} & $11.5 \ Hz$ & Uniform $ \in \left[ 0.5,1.5 \right]\ m\s^2 $ & $50\ mm$\\
\hline
TC 3 &
\begin{tabular}{c}a \\ b\end{tabular} & \begin{tabular}{c} $10^{-3}\ mm$ \\ $5\ mm$\end{tabular} & $11.5\ Hz$ & $1\ m/s^2$ & Uniform $\in [45,55]\ mm$\\
\hline
\multicolumn{2}{|c|}{TC 4} & Uniform $\in [0,5]\ mm$ & Uniform $\in [9,14]\ Hz$ & Uniform $\in [0.5,1.5]\ m/s^2$ & Uniform $\in [45,55]\ mm$ \\
\hline
\end{tabular}
\caption{Uncertain parameters/initial conditions }\label{table_exp}
\end{table}
答案1
! Undefined control sequence.
l.13 ... Uniform $ \in \left[ 0.5,1.5 \right]\ m\s
你\s
有/s
答案2
由于 David 已经回答回答你的问题后,我会允许自己“仅仅”改善一下表格的美观性:
\documentclass{article}
\usepackage[margin = 3.5cm]{geometry} % avoid `overfull \hbox' warning
\usepackage[tableposition = top]{caption} % captions
\usepackage{booktabs} % horizontal lines in tables
\usepackage[per-mode = symbol]{siunitx} % physical quantities and SI units
% shortcut
\newcommand*\mr[2]{\begin{tabular}{c}#1\\#2\end{tabular}}
\begin{document}
\noindent \textsf{Note:} Let $U[a,b]$ denote the uniform on the closed interval from $a$ to $b$.
\begin{table}[htbp]
\centering
\caption{Uncertain parameters/initial conditions.}
\label{table_exp}
\begin{tabular}{*{6}{c}}
\toprule
\multicolumn{2}{c}{Experiment} & Initial tip deflection & Frequency, $\omega$ & Base acceleration, $a_{\textnormal{b}}$ & Magnet gap, $\delta$ \\[0.5ex]
& & \si{\mm} & \si{\Hz} & \si{\m\per\square\s} & \si{\mm} \\
\midrule
TC 1 & \mr{a}{b} & \mr{$10^{-3}$}{$5$} & $U[9,14]$ & $1$ & $50$ \\
\midrule
TC 2 & \mr{a}{b} & \mr{$10^{-3}$}{$5$} & $11.5$ & $U[0.5, 1.5]$ & $50$ \\
\midrule
TC 3 & \mr{a}{b} & \mr{$10^{-3}$}{$5$} & $11.5$ & $1$ & $U[45, 55]$ \\
\midrule
TC 4 & & $U[0,5]$ & $U[9,14]$ & $U[0.5, 1.5]$ & $U[45, 55]$ \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
一些建议:
答案3
这是修正后的代码。请注意,需要调整给出错误的行以消除 m\s^2 并包含修正后的 m/s^2 单位。
\begin{table}[htb!!]
\centering
\begin{tabular}{|c|c|c|c|c|c|}
\hline
\multicolumn{2}{|c|}{Experiment} & Initial tip deflection & frequency $\omega$ &
base acceleration $a_b$ & Magnet gap $\delta$ \\
\hline
TC 1 &
\begin{tabular}{c}a \\ b\end{tabular} & \begin{tabular}{c} $10^{-3}\ mm$ \\
$5\ mm$\end{tabular} & Uniform $\in [9,14]\ Hz$ & $1\ m/s^2$ & $50\ mm$ \\
\hline
TC 2 &
\begin{tabular}{c}a \\ b\end{tabular} & \begin{tabular}{c} $10^{-3}\ mm$ \\
$5\ mm$\end{tabular} & $11.5 \ Hz$ & Uniform $ \in \left[ 0.5,1.5 \right]\ m/s^2 $ & $50\ mm$\\
\hline
TC 3 &
\begin{tabular}{c}a \\ b\end{tabular} & \begin{tabular}{c} $10^{-3}\ mm$ \\
$5\ mm$\end{tabular} & $11.5\ Hz$ & $1\ m/s^2$ & Uniform $\in [45,55]\ mm$\\
\hline
\multicolumn{2}{|c|}{TC 4} & Uniform $\in [0,5]\ mm$ & Uniform $\in [9,14]\ Hz$ & Uniform
$\in [0.5,1.5]\ m/s^2$ & Uniform $\in [45,55]\ mm$ \\
\hline
\end{tabular}
\caption{Uncertain parameters/initial conditions }\label{table_exp}
\end{table}