Alignment of Text in table
조회 수: 13 (최근 30일)
이전 댓글 표시
Hi, I want help in creating an app on a guide from Matlab.
I want to align the text from the 'Data' i input on a table in the center. Right now they are aligned on the right. Is there any way I can change this pattern via script or editing the information on its panel?
This is the only line calling the table:
set(handles.uitable_Bars_design, 'Data', Var_BarsDiameter);
Thanks in advanced
댓글 수: 0
답변 (1개)
Rahul
2025년 4월 17일
Alignment of text inside 'uitable' can be done by adjusting the 'HorizontalAlignment' property of 'uistyle' function.
The following MATLAB Answers provide a good reference for understanding this implementation:
Thanks.
댓글 수: 1
Walter Roberson
2025년 4월 17일
Note that using uistyle() requires that the uitable() is parented to a uifigure(), which would be contrary to the original question about "creating an app on a guide"
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!