Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
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 commentaire
Walter Roberson
Walter Roberson le 1 Août 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?

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by