How to change a UITable displayed vertically in MATLAB App Designer to a horizontal display?
5 次查看(过去 30 天)
显示 更早的评论
Hello;
I am using app designer and wanted to create a table but I want it to be displayed horizontally. My program is as follows:
Num=1:10;
B= 2*Num;
t2=table(Num',B');
app.UITable.ColumnName = {'Number','B'};
app.UITable.Data =t2;
And when I Run in App Designer, the result is as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/896140/image.png)
But I want the table to be displayed as follows (horizontally) and also data aligned in center of cells.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/896145/image.png)
Thank you for your time to reply.
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!