How to add lines between specific rows and col's in a table?
11 views (last 30 days)
Show older comments
Let's say I have this matrix:
M 1 2 3 4 5 6 7
_ _ __ __ __ __ __ _
M 0 0 0 0 0 0 0
M 0 0 0 0 0 0 0
M 0 0 0 0 0 0 0
M 0 0 0 0 0 0 0
How can I draw a horizontal line between this first and second row?
And a vertical line between columns 6 and 7?
is this possible?
if this involves downloading a package, where can I do so?
Thank you,
0 Comments
Accepted Answer
Adam Danz
on 25 Apr 2021
Edited: Adam Danz
on 25 Apr 2021
No, it is not possible to display horizontal and vertical lines in a table or in a uitable.
You could add a column of characters "|" to simulate a dashed vertical line but since your table contains numeric values you cannot use the same approach to add a horizontal line but you could add a horizontal row of NaN values for a visual separator.
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!