문제

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?

도움이 되었습니까?

해결책

You can change the column names using set

set(t, 'columnname', {'X', 'Y', 'Z', 'T'});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top