Align text in uitable using GUIDE

3 ビュー (過去 30 日間)
Victor Dalosto
Victor Dalosto 2018 年 1 月 27 日
コメント済み: Victor Dalosto 2018 年 1 月 28 日
Hi Can anyone provide a script for me to alling in the middle of a uitable, a matrix(3x4) of format double. example a = [3 2 1 4; 5 6 7 8; 9 10 11 12]; Also, i would like to know if it is possible to use in the same uitable, a collumm formed by string, and the rest numerical
  2 件のコメント
Jan
Jan 2018 年 1 月 27 日
I do not understand the question. What is "alling"?
Victor Dalosto
Victor Dalosto 2018 年 1 月 27 日
編集済み: Victor Dalosto 2018 年 1 月 28 日
Sorry, i meant align. I want to align the text in the center of the column. is it possible?

サインインしてコメントする。

採用された回答

Jan
Jan 2018 年 1 月 27 日
Yes, of course a column can contain strings and another doubles:
figure;
uitable('Data', {'hello', 2; 'there', 3})
Look at the examples in:
doc uitable
  1 件のコメント
Victor Dalosto
Victor Dalosto 2018 年 1 月 27 日
Thank you.

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 1 月 28 日
However, notice that the solution I gave there seems to have a problem if you change the width of the cell. If your text is wide enough that you would want to change the width of the cell, you might have difficulty.
  1 件のコメント
Victor Dalosto
Victor Dalosto 2018 年 1 月 28 日
I will try it. Thanks.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by