problem to apply variableNames to table

1 view (last 30 days)
Luca Re
Luca Re on 27 Sep 2023
Answered: Voss on 27 Sep 2023
bubu=convertvars(dd, dd.Properties.VariableNames(1:end), 'cell');
disp(bubu)
Dwmy LS_abilitaLong LS_abilitaShort LS_long LS_short LS_th LS_minTrades LS_avgEquity Avg_abilitaFilter Avg_mode Avg_period Avg_th Avg_minTrades Dev_enable Dev_enableTestDN Dev_enableTestUP Dev_devNumDn Dev_devNumUp Dev_periods Peak_enable Peak_period Peak_minTrades Rank_enable Rank_period Rank_mode Rank_type Rank_minTrades Rank_maxCat Rank_using_type Rank_using_timeframe Rank_normalize_by_cashvola Backtest Cormode CorTH BackAdvanc_tradeLMT BackAdvanc_shiftC BackAdvanc_cloops Degrade_enable Degrade_initialDeg Degrade_degressMode Name
______ ______________ _______________ _______ ________ __________ ____________ ____________ _________________ ________ __________ ______ _____________ __________ ________________ ________________ ____________ ____________ ___________ ___________ ___________ ______________ ___________ ___________ _________ _________ ______________ ___________ _______________ ____________________ __________________________ ________ _______ __________ ___________________ _________________ _________________ ______________ __________________ ___________________ _________________________________
{[31]} {[1]} {[1]} {[9]} {[2]} {[0.5000]} {[16]} {[0]} {[0]} {[2]} {[4]} {[40]} {[16]} {[0]} {[1]} {[0]} {[1]} {[1]} {[150]} {[0]} {[6]} {[12]} {[0]} {[6]} {[1]} {[1]} {[16]} {[3]} {[1]} {[1]} {[0]} {[1]} {[1]} {[0.7500]} {[0.3750]} {[0.7500]} {[5]} {[0]} {[100]} {[0]} {["FiltroLongShort_Th.tpresett"]}
app.Preset_UITable.Data=bubu;
i see in the pics : column1 column2 but not variablenames

Accepted Answer

Voss
Voss on 27 Sep 2023
You have to set the ColumnName of the uitable separately, if you want to do that:
app.Preset_UITable.ColumnName = bubu.Properties.VariableNames;

More Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!