how to create center-justified table elments

조회 수: 5 (최근 30일)
Jonathan Nagel
Jonathan Nagel 2020년 11월 9일
답변: Eric Sofen 2020년 11월 12일
I am trying to make a table in a plot with numbers and text as elements. At this point, I can make the table appear with the numbers but not the text. I can make single characters appear in the table, which would be OK, but these are left justified. The numbers are right-justified. I want everything to be center-justified. How do I do it? I have spent a lot of time going through the documentation with no success.

답변 (1개)

Eric Sofen
Eric Sofen 2020년 11월 12일
When you say you're "trying to make a table in a plot" I assume you're referring to uitable? If so, you can use uistyle to determine text alignment.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by