problem to apply variableNames to table
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
Voss
2023년 9월 27일
You have to set the ColumnName of the uitable separately, if you want to do that:
app.Preset_UITable.ColumnName = bubu.Properties.VariableNames;
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!