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!