I have completed the following table below. However now I am trying to give the table a caption underneath, I just want to caption it Table 1: Variables. However when I try it I am running into problems, looking for some help thanks! I have included a screenshot
\documentclass{article}
\usepackage{graphicx}
\usepackage{booktabs, multirow}
\usepackage{siunitx}
\usepackage{amsmath}
\setlength{\extrarowheight}{2pt}
\usepackage{tabularx}
\begin{document}
{\footnotesize
\noindent\begin{tabularx}{\linewidth}{p{1.45cm}>{$}c<{$}Xlp{1.5cm}} \toprule
& \text{Symbol}
& \hfil Description & Unit & Constraint\\
\midrule
Variables
& S_H & Number of susceptible humans & number & $S_H \geq 0 $ \\
& I_H & Number of infected humans & number & $I_H \geq 0 $ \\
& R_H & Number of recovered humans & number & $R_H \geq 0 $ \\
& V_H & Number of vaccinated humans & number& $ V_H \geq 0$ \\
& N_H & Number of total human population & number & $N_H > 0 $ \\
& S_M & Number of susceptible mosquitoes & number & $S_M \geq 0 $ \\
& E_M & Number of exposed mosquitoes & number & $E_M \geq 0 $ \\
& I_M & Number of infected mosquitoes & number & $I_M \geq 0 $ \\
& N_M & Number of total mosquito population & number & $N_M > 0 $ \\
\bottomrule
\end{tabularx}
}
\end{document}

latex. you should read some introduction text aboutlatex. for floats see https://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions, and for table settings https://en.wikibooks.org/wiki/LaTeX/Tables – Zarko Apr 01 '18 at 17:24