App Designer Input Headers for Table

Hello!
I have been searching for what I want, but have been unsecessful in finding it. I am building a tool in App Designer that allows someone to input a text file with row and columns of data. I have been able to get the data file imported using a button that allows you to select the file and places it in a table. What I want to be able to do is allow the user to enter the headers for the columns. Is there an easy way that this can be done?
Thanks!

답변 (1개)

Cris LaPierre
Cris LaPierre 2022년 7월 8일
편집: Cris LaPierre 2022년 7월 8일

0 개 추천

You could set the 'VariableNames' property of the table passed to the uitable.
  • By default, the column names displayed in the app match the VariableNames property of the table array. Changing the ColumnName property of the Table UI component updates the UI, but it does not update the variable names in the table array.
You can see some examples here.
To just change what appears in the app's uitable, set the ColumnName property.

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2022년 7월 8일

편집:

2022년 7월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by