문제

I am using MATLAB Student Version R2011a. I am creating a GUI-table to compare data easier, but I end up in complicated abbreviations, because I don't know how to make multi-line column headings.

I create the table like this (minimal example):

myFigure = figure('Position', [100, 200, 400, 100]);

tableData = magic(3);

cnames = {'convPrice/y', 'rechEn', 'priceRechEn'};
     myTable = uitable('Parent', myFigure, ...
     'Data', tableData, ...
     'ColumnName', cnames, ...
     'Position',[10 10 380 80]);

I took a screenshot and I will upload it, when I reach reputation 10. Thank you for your answers.

도움이 되었습니까?

해결책

You can create multiline column headings using a vertical slash (|) to separate lines. For example:

cnames = {'conv|price', 'rech|en', 'price|rechEn'};
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top