How to have a dotted line separate a matrix into upper and lower part
up vote
3
down vote
favorite
So, here is what I want to do:
I have created a matrix C and another Matrix D. And I have labelled the columns and rows. Now, I want to join these two matrices together, keeping the labels. But I want - I hope this is posssible - to have a dotted line go through the matrix, indicating where labels 'TX^C' end and where labels 'TX^D' start.
This is what I have so far:
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument
Only the dotted line is missing. Alternatively, shading the background of the upper matrix in a light color would be nice as well. I have just read a similar question here. But since I don't know LaTeX so well, I don't know if I want to overcomplicate things by making use of tikz.
Small Edit:
What, if I want two vertical labels? I was trying this, for example:
[mathbfPairs =
beginblockarraycc
Transmitter & Receiver \
beginblockc(cc)c
TX_1^C & (x,y) & (x,y) & BS \
TX_2^C & (x,y) & (x,y) & BS \
&vdots & vdots \
TX_max^C & (x,y) & (x,y) & BS \
BAhhline......
TX_1^D & (x,y) & (x,y) &RX_1^D \
TX_2^D & (x,y) & (x,y) &RX_2^D \
&vdots & vdots \
TX_ax^D & (x,y) & (x,y) &RX_max^D \
endblock
endblockarray
]
matrices tikz-matrix
add a comment |
up vote
3
down vote
favorite
So, here is what I want to do:
I have created a matrix C and another Matrix D. And I have labelled the columns and rows. Now, I want to join these two matrices together, keeping the labels. But I want - I hope this is posssible - to have a dotted line go through the matrix, indicating where labels 'TX^C' end and where labels 'TX^D' start.
This is what I have so far:
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument
Only the dotted line is missing. Alternatively, shading the background of the upper matrix in a light color would be nice as well. I have just read a similar question here. But since I don't know LaTeX so well, I don't know if I want to overcomplicate things by making use of tikz.
Small Edit:
What, if I want two vertical labels? I was trying this, for example:
[mathbfPairs =
beginblockarraycc
Transmitter & Receiver \
beginblockc(cc)c
TX_1^C & (x,y) & (x,y) & BS \
TX_2^C & (x,y) & (x,y) & BS \
&vdots & vdots \
TX_max^C & (x,y) & (x,y) & BS \
BAhhline......
TX_1^D & (x,y) & (x,y) &RX_1^D \
TX_2^D & (x,y) & (x,y) &RX_2^D \
&vdots & vdots \
TX_ax^D & (x,y) & (x,y) &RX_max^D \
endblock
endblockarray
]
matrices tikz-matrix
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
So, here is what I want to do:
I have created a matrix C and another Matrix D. And I have labelled the columns and rows. Now, I want to join these two matrices together, keeping the labels. But I want - I hope this is posssible - to have a dotted line go through the matrix, indicating where labels 'TX^C' end and where labels 'TX^D' start.
This is what I have so far:
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument
Only the dotted line is missing. Alternatively, shading the background of the upper matrix in a light color would be nice as well. I have just read a similar question here. But since I don't know LaTeX so well, I don't know if I want to overcomplicate things by making use of tikz.
Small Edit:
What, if I want two vertical labels? I was trying this, for example:
[mathbfPairs =
beginblockarraycc
Transmitter & Receiver \
beginblockc(cc)c
TX_1^C & (x,y) & (x,y) & BS \
TX_2^C & (x,y) & (x,y) & BS \
&vdots & vdots \
TX_max^C & (x,y) & (x,y) & BS \
BAhhline......
TX_1^D & (x,y) & (x,y) &RX_1^D \
TX_2^D & (x,y) & (x,y) &RX_2^D \
&vdots & vdots \
TX_ax^D & (x,y) & (x,y) &RX_max^D \
endblock
endblockarray
]
matrices tikz-matrix
So, here is what I want to do:
I have created a matrix C and another Matrix D. And I have labelled the columns and rows. Now, I want to join these two matrices together, keeping the labels. But I want - I hope this is posssible - to have a dotted line go through the matrix, indicating where labels 'TX^C' end and where labels 'TX^D' start.
This is what I have so far:
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument
Only the dotted line is missing. Alternatively, shading the background of the upper matrix in a light color would be nice as well. I have just read a similar question here. But since I don't know LaTeX so well, I don't know if I want to overcomplicate things by making use of tikz.
Small Edit:
What, if I want two vertical labels? I was trying this, for example:
[mathbfPairs =
beginblockarraycc
Transmitter & Receiver \
beginblockc(cc)c
TX_1^C & (x,y) & (x,y) & BS \
TX_2^C & (x,y) & (x,y) & BS \
&vdots & vdots \
TX_max^C & (x,y) & (x,y) & BS \
BAhhline......
TX_1^D & (x,y) & (x,y) &RX_1^D \
TX_2^D & (x,y) & (x,y) &RX_2^D \
&vdots & vdots \
TX_ax^D & (x,y) & (x,y) &RX_max^D \
endblock
endblockarray
]
matrices tikz-matrix
matrices tikz-matrix
edited Nov 10 at 12:53
asked Nov 10 at 11:54
user503842
705
705
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
The package blkarray already offers several commands for different lines. One of them is BAhhline where you can define the kind of line
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
BAhhline......
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument

Thx so much, Ignasi! This is exactly what I want. Just - see my edit - what if I only label the columns and not the rows? It doesn't seem to work the way I am trying to do it. I have included the extra&before the` , because this is where usually there would be the labels. If I leave the&`, at least I don't get an error. But the left bracket is far to much to the left
– user503842
Nov 10 at 12:39
hmm... actually, let me correct this: Can you tell me a way of how to have two vertical labels? One on the right and one on the left ?
– user503842
Nov 10 at 12:48
ok, nevermind. I have opened a new question for this. Thx so much for your help, again!
– user503842
Nov 10 at 13:35
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
The package blkarray already offers several commands for different lines. One of them is BAhhline where you can define the kind of line
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
BAhhline......
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument

Thx so much, Ignasi! This is exactly what I want. Just - see my edit - what if I only label the columns and not the rows? It doesn't seem to work the way I am trying to do it. I have included the extra&before the` , because this is where usually there would be the labels. If I leave the&`, at least I don't get an error. But the left bracket is far to much to the left
– user503842
Nov 10 at 12:39
hmm... actually, let me correct this: Can you tell me a way of how to have two vertical labels? One on the right and one on the left ?
– user503842
Nov 10 at 12:48
ok, nevermind. I have opened a new question for this. Thx so much for your help, again!
– user503842
Nov 10 at 13:35
add a comment |
up vote
3
down vote
accepted
The package blkarray already offers several commands for different lines. One of them is BAhhline where you can define the kind of line
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
BAhhline......
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument

Thx so much, Ignasi! This is exactly what I want. Just - see my edit - what if I only label the columns and not the rows? It doesn't seem to work the way I am trying to do it. I have included the extra&before the` , because this is where usually there would be the labels. If I leave the&`, at least I don't get an error. But the left bracket is far to much to the left
– user503842
Nov 10 at 12:39
hmm... actually, let me correct this: Can you tell me a way of how to have two vertical labels? One on the right and one on the left ?
– user503842
Nov 10 at 12:48
ok, nevermind. I have opened a new question for this. Thx so much for your help, again!
– user503842
Nov 10 at 13:35
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
The package blkarray already offers several commands for different lines. One of them is BAhhline where you can define the kind of line
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
BAhhline......
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument

The package blkarray already offers several commands for different lines. One of them is BAhhline where you can define the kind of line
documentclass[a4paper12pt]article
usepackagegeometry
usepackageblkarray
usepackageamsmath
usepackagexcolor
usepackagegraphicx
begindocument
[mathbfJ =
beginblockarraycccccc
RB_1 & RB_2 & RB_3 & dots & RB_m \
beginblock(ccccc)c
1 & 0 & 1 & dots & 0 & TX_1^C \
0 & 1 & 0 & dots & 0 & TX_2^C \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^C \
BAhhline......
1 & 0 & 1 & dots & 0 & TX_1^D \
0 & 1 & 0 & dots & 0 & TX_2^D \
vdots & vdots & vdots & & vdots & \
& & & & & \
0 & 0 & 0 & dots & 1 & TX_max^D \
endblock
endblockarray
]
enddocument

answered Nov 10 at 12:20
Ignasi
89.8k4162301
89.8k4162301
Thx so much, Ignasi! This is exactly what I want. Just - see my edit - what if I only label the columns and not the rows? It doesn't seem to work the way I am trying to do it. I have included the extra&before the` , because this is where usually there would be the labels. If I leave the&`, at least I don't get an error. But the left bracket is far to much to the left
– user503842
Nov 10 at 12:39
hmm... actually, let me correct this: Can you tell me a way of how to have two vertical labels? One on the right and one on the left ?
– user503842
Nov 10 at 12:48
ok, nevermind. I have opened a new question for this. Thx so much for your help, again!
– user503842
Nov 10 at 13:35
add a comment |
Thx so much, Ignasi! This is exactly what I want. Just - see my edit - what if I only label the columns and not the rows? It doesn't seem to work the way I am trying to do it. I have included the extra&before the` , because this is where usually there would be the labels. If I leave the&`, at least I don't get an error. But the left bracket is far to much to the left
– user503842
Nov 10 at 12:39
hmm... actually, let me correct this: Can you tell me a way of how to have two vertical labels? One on the right and one on the left ?
– user503842
Nov 10 at 12:48
ok, nevermind. I have opened a new question for this. Thx so much for your help, again!
– user503842
Nov 10 at 13:35
Thx so much, Ignasi! This is exactly what I want. Just - see my edit - what if I only label the columns and not the rows? It doesn't seem to work the way I am trying to do it. I have included the extra
& before the ` , because this is where usually there would be the labels. If I leave the &`, at least I don't get an error. But the left bracket is far to much to the left– user503842
Nov 10 at 12:39
Thx so much, Ignasi! This is exactly what I want. Just - see my edit - what if I only label the columns and not the rows? It doesn't seem to work the way I am trying to do it. I have included the extra
& before the ` , because this is where usually there would be the labels. If I leave the &`, at least I don't get an error. But the left bracket is far to much to the left– user503842
Nov 10 at 12:39
hmm... actually, let me correct this: Can you tell me a way of how to have two vertical labels? One on the right and one on the left ?
– user503842
Nov 10 at 12:48
hmm... actually, let me correct this: Can you tell me a way of how to have two vertical labels? One on the right and one on the left ?
– user503842
Nov 10 at 12:48
ok, nevermind. I have opened a new question for this. Thx so much for your help, again!
– user503842
Nov 10 at 13:35
ok, nevermind. I have opened a new question for this. Thx so much for your help, again!
– user503842
Nov 10 at 13:35
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459295%2fhow-to-have-a-dotted-line-separate-a-matrix-into-upper-and-lower-part%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown