Domanda

I am working with MATLAB GUI. I have a push button, when I press it, it is going to be like this:

uitable result

To show that table, I wrote this script:

t=uitable;
set(t,'Data',y)

y is the variable to show the numbers in the table.

The problem is, I want to change the column names. For example, the first column is going to be named X, the second column is Y, the third column is Z, the fourth column is T. What script should I add to change the name of the column?

È stato utile?

Soluzione

You can change the column names using set

set(t, 'columnname', {'X', 'Y', 'Z', 'T'});
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top