![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205853/image.png)
LaTeXで行列に罫線を入れる,
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Kiyoto Matsumoto
le 21 Fév 2019
Commenté : Kiyoto Matsumoto
le 26 Fév 2019
ライブエディターでLaTeXを使用して画像の様な行列を記述したいのですが、
罫線を引く、および複数の行・列を使用して1字を表記するにはどの様にすれば良いでしょうか。
\begin{array}{c|cc}の様に表記すれば縦の罫線が入るかと思ったのですが、エラーは出ないものの罫線が表示されません。
\hlineで横の罫線を引こうとした際には、下に2行以上ないとこれも表示されません。(画像の例では大丈夫ですが。)
![matrix.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205159/matrix.jpeg)
以上ご教示のほどよろしくお願いいたします。
0 commentaires
Réponse acceptée
Kazuya
le 25 Fév 2019
B =
\left[ \begin{array}{c}
& & & 1 \\
& A & & \vdots \\
1 & \cdots & 1 & 0
\end{array} \right]
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205853/image.png)
ならできますが、{c|cc} との記述や \multicolumn と \multirow がサポートされていないみたいなので、むずかしいですね。\hline についてはバグでしょうか・・。
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Language Support dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!