I would like to create a table in www.overleaf.com with compiler pdfLaTeX TeX Live version 2022.
Here is the code.
\documentclass[journal]{IEEEtran}
\begin{document}
\begin{table}[h]
\captionof{table}{Table of $q$ and $z$}
\label{tab:table_q_and_z}
\noindent
\begin{tabularx}{\columnwidth} { | c | c | >{\raggedright\arraybackslash}X |}
\hline
\textbf{Steps} & \textbf{$q_i$} & \textbf{Definition of $z_i$} \
\hline
\multirow{$i \leq (n-1)$} & $q_i$ = 0 & $z_i$ = number of \emph{emptied} chambers at the \emph{cleaning} place $i \leq (n-1)$ \
\cline{2-3}
& \centering $q_i$ = 1 & $z_i$ = number of \emph{loaded} chambers at the \emph{processing} place $i \leq (n-1)$ \
\hline
$i=n$ & $q_{n}$ = 0 & $z_n$ = number of \emph{loaded} chambers at the \emph{processing} place $n$ \
\cline{2-3}
& $q_{n}$ = 1 & $z_{n}$ = number of \emph{emptied} chambers at the \emph{cleaning} place $n$ \
\hline
\end{tabularx}
\end{table}
\end{document}
There is an error : "Undefined Control Sequence" as follows.
However the table printed well as follows.
Can anyone tell me what needs to be revised on the code, please?
Thank you.




