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 ^^ !
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!