truncated rowname in uitable

3 ビュー (過去 30 日間)
Luca Re
Luca Re 2025 年 1 月 20 日
コメント済み: Luca Re 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 件のコメント
Stephen23
Stephen23 2025 年 1 月 20 日
Are you using a FIGURE or a UIFIGURE ?
Luca Re
Luca Re 2025 年 1 月 20 日
i think it's uifigure

サインインしてコメントする。

回答 (2 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2025 年 1 月 20 日
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".
Luca Re
Luca Re 2025 年 1 月 20 日
eh nothing then... I set it up this way from the beginning for various reasons

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by