In app designer, how can I give a name to the row and columns intersection?

2 ビュー (過去 30 日間)
Mohamed Ghali Kabbaj
Mohamed Ghali Kabbaj 2022 年 3 月 23 日
回答済み: Nivedita 2023 年 9 月 14 日
I would like to make this part of my table to have d/T. Like I want the user to know that the rows are T and columns d.
If it's gonna help you, the table is actually some values that you find using d and T. Thank ^^ !

採用された回答

Nivedita
Nivedita 2023 年 9 月 14 日
Hi Mohammed,
I understand that you are looking for a way to name the intersecting cell of the column and row name.
There is no direct way to achieve it, however as a workaround you can use “labels” to get the same results. Here is how you can do it:
function startupFcn(app)
uitable(app.UIFigure, "Data", [1 2 3; 4 5 6; 7 8 9]);
labelText = "d/T";
label = uilabel(app.UIFigure, 'Text', labelText);
label.Position = [33 296 200 20];
end
In the “startup function, a “uitable” with random data has been created. I have then stored the desired display string (“d/T” in this case) in the “labelText” variable. Then using “uilabel” and its “Position” property, the string has been positioned manually to be displayed in the intersecting cell of the column and row name.
For more information on "uilabel", you can refer to the following documentation:
I hope this helps!
Regards,
Nivedita.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by