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

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Develop 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