【发布时间】:2020-12-26 03:05:50
【问题描述】:
我正在尝试在 appdesigner 中构建一个 100*100 的表,就像 Matlab 命令中的 uitable(figure,100,100) 但在 appdesigner 中我无法设置表格的大小。我非常需要帮助来修复它。谢谢
【问题讨论】:
标签: matlab matlab-app-designer matlab-uitable
我正在尝试在 appdesigner 中构建一个 100*100 的表,就像 Matlab 命令中的 uitable(figure,100,100) 但在 appdesigner 中我无法设置表格的大小。我非常需要帮助来修复它。谢谢
【问题讨论】:
标签: matlab matlab-app-designer matlab-uitable
可以在图形的startupFcn回调中改变表格的大小。
% Initialize the table to have 100 rows and 100 columns
% Each Row-Column cell can also be initialized with real data
app.UITable.Data = cell( 100, 100);
% Specify the row and column names, 100 x 1 cell {'Col 1', 'Col 2', ... }
app.UITable.ColumnName = {};
app.UITable.RowName = {};
【讨论】: