Info

This question is closed. Reopen it to edit or answer.

To have variables in a table that changes automatically based on the input file that i am selecting in GUI .

1 view (last 30 days)
I need a table that have headers that is read from a input file . Say for example my 1st input file have variables read as A B C D which is loaded into the table in GUI as headers . Next time when I read a different file which has variables A B C D E F the table should automatically have headers as A B C D E F My problem is while reading different files(in which the number of variables are different) I need to choose/select the variables manually every single time so that the variables are loaded into the table which shouldn't be the case and my requirement is it should get automatically changed based on the input file.
TIA
  1 Comment
Walter Roberson
Walter Roberson on 1 Aug 2015
Are you referring to a uitable() or are you referring to the table() data type? How are you doing the reading? Do you have a variable that is a cell array of strings that stores all the headers? How do you want the headers displayed? Is the rest of the table numeric?

Answers (0)

Community Treasure Hunt

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

Start Hunting!