set uitable property everytime?

3 visualizzazioni (ultimi 30 giorni)
pipin
pipin il 5 Ago 2023
Risposto: Rik il 5 Ago 2023
Do I have to set uitable properties everytime I call function?(ColumnWidth...ColumnName)..
function HistoricalTabButtonDown(app, event)
app.DateSearchDropDown_3.Items=string(app.Eq.MinCap_posSiz.DateRicalcolo(end));
app.UITable_Historical_3.Data=Table_Historical_Struct(app.Eq,app.Sis,app.DateSearchDropDown_3.Value);
app.UITable_Historical_3.ColumnWidth= {30,300,50,50,50};
app.UITable_Historical_3.ColumnName = {"#","A","B","C","D"};
end
function DateSearchDropDown_3Clicked(app, event)
item = event.InteractionInformation.Item;
if ~isempty(item)
app.UITable_Historical_3.Data=Table_Historical_Struct(app.Eq,app.Sis,app.DateSearchDropDown_3.Value);
app.UITable_Historical_3.ColumnWidth= {30,300,50,50,50};
app.UITable_Historical_3.ColumnName = {"#","A","B","C","D"};
end
end

Risposta accettata

Rik
Rik il 5 Ago 2023
You only need to set properties if you want to change them, or if you want to ensure they have a specific value.
This is true for all normal Matlab objects with properties.

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by