Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
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 Kommentar
Walter Roberson
Walter Roberson am 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?

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by