行列とTikZ:行列内の矢印



Matrices Tikz Arrows Inside Matrix



解決:

マトリックス区切り文字はノードですが、デフォルトでは名前がありません。したがって、名前を追加すると、他のノードと同じようにそれらを参照として使用でき、線は境界で停止します。

次のコードでは、私は使用しました後で使用される名前を追加するためのすべての右区切り文字スタイル。



マトリックスは、他のノードを含む特別な種類のノードです。だからあなたが上の行を停止したい場合マトリックスの境界線マトリックス名を参照として使用できます。行列要素には独自の境界線があります。列の中心と南のマトリックスの境界線の交点を使用して垂直矢印を配置し、行の中心と東のアンカーを右の区切り文字に配置して水平矢印を配置しました。あなたが理解する必要がある場合-| (また|-)構文については、https://tex.stackexchange.com/a/481234/1952またはhttps://tex.stackexchange.com/a/22954/1952をご覧ください。

 documentclass [border = 5pt] {standalone}  usepackage {tikz}  usetikzlibrary {matrix、decorations.pathreplacing、calc、positioning、fit}  begin {document}  begin {tikzpicture} [> = stealth、thick、baseline、every right delimiter / .append style = {name = rd}、]  matrix [数学ノードの行列、left delimiter =(、right delimiter =)、](A){a_ {1,1}&a_ {1,2} &非常に{2、n} \  vdots& vdots &&  vdots &&  vdots \ a_ {i、1}&a_ {i、2}& dots&a_ {i、j}& dots&a_ {i、n​​} \  vdots& vdots &&  vdots &&  vdots \ a_ {n、1}&a_ {n、2}& dots&a_ {n、j}& dots&a_ {n、n} \}; 描く[<-] (rd.east|-A-4-1.center)--++(0:6mm) node[right]{$i$-ième colonne}; draw[<-] (A.south-|A-1-4.center) --++(-90:6mm) node[below]{$j$-ième colonne}; end{tikzpicture} end{document}  

ここに画像の説明を入力してください




追加しますxshift:

 documentclass [border = 5pt] {standalone}  usepackage {tikz}  usetikzlibrary {matrix、decorations.pathreplacing、calc、positioning、fit}  begin {document}  begin {tikzpicture} [> = stealth、thick、baseline] 行列[数学ノードの行列、左区切り文字=(、右区切り文字=)](A){a_ {1,1}&a_ {1,2}& dots&a_ {1、j}& dots&a_ { 1、n} \ a_ {2,1}&a_ {2,2}& dots&a_ {2、j}& dots&a_ {2、n} \  vdots& vdots &&  vdots &&  vdots \ a_ {i、1}&a_ {i、2}& dots&a_ {i、j}& dots&a_ {i、n} \  vdots& vdots &&  vdots &&  vdots \ a_ {n、1}&a_ {n、2}& dots&a_ {n、j}& dots&a_ {n、n} \};  node [fit =(A-4-6)(A-4-6)、inner xsep = 20pt、inner ysep = 0、label = right:$ i $-ièmeligne](L){};  node [fit =(A-6-4)(A-6-4)、inner xsep = 20pt、inner ysep = 20pt、label = below:$ j $-ièmecolonne](C){};  draw [->](L.east)-([xshift = 12pt] A-4-6.east);  draw [->](C.south)-(A-6-4);  end {tikzpicture}  end {document}

ここに画像の説明を入力してください

または矢印を短くします。



 documentclass [border = 5pt] {standalone}  usepackage {tikz}  usetikzlibrary {matrix、decorations.pathreplacing、calc、positioning、fit}  begin {document}  begin {tikzpicture} [> = stealth、thick、baseline] 行列[数学ノードの行列、左区切り文字=(、右区切り文字=)](A){a_ {1,1}&a_ {1,2}& dots&a_ {1、j}& dots&a_ { 1、n} \ a_ {2,1}&a_ {2,2}& dots&a_ {2、j}& dots&a_ {2、n} \  vdots& vdots &&  vdots &&  vdots \ a_ {i、1}&a_ {i、2}& dots&a_ {i、j}& dots&a_ {i、n} \  vdots& vdots &&  vdots &&  vdots \ a_ {n、1}&a_ {n、2}& dots&a_ {n、j}& dots&a_ {n、n} \};  node [fit =(A-4-6)(A-4-6)、inner xsep = 20pt、inner ysep = 0、label = right:$ i $-ièmeligne](L){};  node [fit =(A-6-4)(A-6-4)、inner xsep = 20pt、inner ysep = 20pt、label = below:$ j $-ièmecolonne](C){};  draw [->、shorter> = 12pt](L.east)-(A-4-6.east);  draw [->](C.south)-(A-6-4);  end {tikzpicture}  end {document}

ちなみになぜあなたは必要ですかフィット?

 documentclass [border = 5pt] {standalone}  usepackage {tikz}  usetikzlibrary {matrix、positioning}  begin {document}  begin {tikzpicture} [> = stealth、thick、baseline]  matrix [数学ノードの行列、左delimiter =(、right delimiter =)](A){a_ {1,1}&a_ {1,2}& dots&a_ {1、j}& dots&a_ {1、n} \ a_ { 2,1}&a_ {2,2}& dots&a_ {2、j}& dots&a_ {2、n} \  vdots& vdots &&  vdots &&  vdots \ a_ { i、1}&a_ {i、2}& dots&a_ {i、j}& dots&a_ {i、n} \  vdots& vdots &&  vdots &&  vdots \ a_ { n、1}&a_ {n、2}& dots&a_ {n、j}& dots&a_ {n、n} \};  node [right = 30pt of A-4-6.east](L){$ i $-ièmeligne};  node [below = 20pt of A-6-4.south](C){$ j $-ièmecolonne};  draw [->、shorter> = 12pt](L.west)-(A-4-6.east);  draw [->](C.north)-(A-6-4.south);  end {tikzpicture}  end {document}

ここに画像の説明を入力してください