set uitable property everytime?

조회 수: 1 (최근 30일)
pipin
pipin 2023년 8월 5일
답변: Rik 2023년 8월 5일
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

채택된 답변

Rik
Rik 2023년 8월 5일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by