App Designer Input Headers for Table

조회 수: 17 (최근 30일)
Amanda
Amanda 2022년 7월 8일
편집: Cris LaPierre 2022년 7월 8일
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일
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.

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by