truncated rowname in uitable

7 次查看(过去 30 天)
shamal
shamal 2025-1-20
评论: shamal 2025-1-20
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 个)

Sulaymon Eshkabilov
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
  5 个评论
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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by