How to add lines between specific rows and col's in a table?
11 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Adam Danz
2021-4-25
编辑:Adam Danz
2021-4-25
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!