Question

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?

Was it helpful?

Solution

You can change the column names using set

set(t, 'columnname', {'X', 'Y', 'Z', 'T'});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top