필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
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
Walter Roberson
Walter Roberson 2015년 8월 1일
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?

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by