\documentclass{article}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{graphicx}
\newcommand{\head}[1]{\textnormal{\textbf{#1}}}
\newcommand{\normal}[1]{\multicolumn{1}{l}{#1}}
 \usepackage{xepersian}


\begin{document}
\begin{table}[h]
 \renewcommand{\arraystretch}{1.5}
\scriptsize

\centering
\caption{نتایج حاصل از مطالعه شبیه‌سازی}\label{tab1}
\begin{tabular} {{c}{c}|| p{0.01cm} {c}{c}{c}{c}{c}{c}{c}{c}{c}{c}{c}{c}{c}}  
\toprule[1.5pt]

\multirow{4}{*}{\head{$g=1$}}

&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16\\

&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16

\\
&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16
\\
&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16


\\
%[0.06cm] 
\cmidrule[2pt]{4-16}
%\noalign{\hrule height 2pt}{4-16}
%\Cline[2pt]{4-16}


\multirow{4}{*}{\head{$g=2$}}

&\multirow{2}{1.1cm}{1} &
3&
4
&5&6&7&8&9&10&11&12&13&14&15&16\\
&&3&4 &5&6&7&8&9&10&11&12&13&14&15&16\\

\cline{4-16}


&\multirow{2}{1.1cm}{2}&3&4&5&6&7&8&9&10&11&12&13&14&15&16

\\
&&3&4&5&6&7&8&9&10&11&12&13&14&15&16
\\
&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16



  \\

1&2&3&4&5&6&7&8&9&10&11&12&13&14&15&16\\
\bottomrule[1.5pt]
 \end{tabular}

 \label{tb:1}
\end{table}
\end{document}
