\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\author{}
\begin{document}
\[
\left[
\begin{array}{cccccccccccccccccccccccccccccccccccccccccccccc}
1 & 1 & \dots & 1 & 1 & 1 & \dots &\dots &\dots &1 & 1 \\
0 & 0 & \dots & 0 & 0 & 0 & \dots &\dots &\dots &0 & 0 \\
\dots & \dots & \dots & \dots & \dots & \dots & \dots &\dots &\dots &\dots & \dots \\
\dots & \dots & \dots & \dots & \dots & \dots & \dots & \dots &\dots &\dots &\dots \\
0 & 0 & \dots & 0 & 0 & 0 & \dots &\dots &\dots &0 & 0 \\
\cline{1-11}
& & & & \multicolumn{1}{c|}{} & & \\
& & \mathbf{{J^T}} & & \multicolumn{1}{c|}{} && &&\mathbf{{A-(n-2)I}} \\
& & & & \multicolumn{1}{c|}{} & &
\end{array} \;
\right]
\]
\end{document}
I have written the above code but I am having two issues:
There are spaces appearing inside the matrix after the
dots
specifically in the third last column. I don't know how to fix it.Also
\mathbf{{J^T}}
and\mathbf{{A-(n-2)I}}
are appearing very small in the matrix. Is there any way to make $J^T$ and $A-(n-2)I$ appear larger? I tried using\huge
but its of no help.
Can someone kindly help me out? Thanks in advance.