App Designer Table Properties

3 次查看(过去 30 天)
cletus blum
cletus blum 2017-7-29
I am working in App Designer and am noticing a small quark with the UITable properties. I am trying to load data from a text file into the UITable:
function ShowMDRButtonPushed(app, event)
T = readtable('dout1.txt')
t = table2cell(T)
app.MDRTable.Data = t
app.MDRTable.ColumnName = T.Properties.VariableNames
end
It loads the data into the data into the UITable (MDRTable above) but only displays the first 10 columns, of 25, when I run the app. I leave the UITable Properties Configuration box empty (I deleted all the columns). I have noticed when I make the app full screen and then push the button to load the data i get 20 of my 25 columns displayed. The horizontal scroll bar works for both instances.
Any thoughts on how I can have my entire table displayed?

回答(1 个)

Mandar Patwardhan
Mandar Patwardhan 2017-7-31
I tried to reproduce this in R2017a version of MATLAB. This is an expected behavior. The app loads the data asynchronously as you scroll using the horizontal scroller. If you want to display all (as much data as you can) at once, you can try assigning smaller widths to the individual columns so that more number of columns will be displayed. This is a workaround for a special use case and not a recommended workflow.

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by