truncated rowname in uitable

hi, I see the truncated rowname in uitable
How can i display full name in uitable rowname?
RowName=compose(formatSpec,t1,sist);
app.UITable.RowName=RowName';

댓글 수: 2

Stephen23
Stephen23 2025년 1월 20일
Are you using a FIGURE or a UIFIGURE ?
shamal
shamal 2025년 1월 20일
i think it's uifigure

댓글을 달려면 로그인하십시오.

답변 (2개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2025년 1월 20일

0 개 추천

Use an option of preserving the variable name rule - see this example:
% File Name to Be Imported:
filename = 'DATA_Sample_Table.csv';
OPTIONS = detectImportOptions(filename);
OPTIONS.VariableNamingRule = 'preserve'; % Preserve Original Variable Names
% Read DATA:
T_DATA = readtable(filename, OPTIONS);
% Display the Imported Table:
disp(T_DATA);
Row N Var 1 Var _______________________________________ _____ ___ {'This is what happened in Dec 2024' } 1 100 {'This is what happened in Jan 2025' } 2 110 {'This is what happened in March 2025'} 3 120 {'This is what happened in May 2025' } 4 130 {'This is what happened in July 2025' } 5 140
Walter Roberson
Walter Roberson 2025년 1월 20일

0 개 추천

댓글 수: 5

app.UITable.Data=T;
app.UITable.ColumnName=["On";'Trading';"L/S";"100% Distrib";"Capitale $";"Static";"Draw_Sys"];
colu={'logical','char','char','char','char','char','logical'};
app.UITable.ColumnFormat=colu;
app.UITable.ColumnWidth={40,60,40,70,70,40,40};
app.UITable.ColumnEditable=[true,false,false,false,true,true,true];
%************** 04/08/24..messo nomi sistemi come RowName!
sist=string([app.Sis.Sistema])';
t1=(1:height(sist))';
formatSpec = "%d - %s";
RowName=compose(formatSpec,t1,sist);
app.UITable.RowName=RowName';
BUT I WANT TO DISPLAY FULL NAME NOT IN ELEMENT UITABLE BUT IN NAME VARIABLE (app.UITable.RowName)
I can't do it using app.UITable.ColumnWidth
Walter Roberson
Walter Roberson 2025년 1월 20일
I do not understand what you are trying to say.
shamal
shamal 2025년 1월 20일
ok my english is not good..
Look this example:
app.UITable.ColumnWidth={40,60,40,70,70,40,40,40}
app.UITable.ColumnWidth={140,60,40,70,70,40,40,40} (i change first number)
Stephen23
Stephen23 2025년 1월 20일
편집: Stephen23 2025년 1월 20일
Summary: the ColumnWidth does not apply to the RowNames.
Workaround: convert the RowNames to a normal variable/column, set the ColumnWidth to "fit".
shamal
shamal 2025년 1월 20일
eh nothing then... I set it up this way from the beginning for various reasons

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2024b

질문:

2025년 1월 20일

댓글:

2025년 1월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by