In app designer, how can I give a name to the row and columns intersection?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohamed Ghali Kabbaj
le 23 Mar 2022
Réponse apportée : Nivedita
le 14 Sep 2023
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 ^^ !
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/938079/image.png)
0 commentaires
Réponse acceptée
Nivedita
le 14 Sep 2023
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!