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

1 visualización (últimos 30 días)
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 ^^ !

Respuesta aceptada

Nivedita
Nivedita el 14 de Sept. de 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.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by