MATLAB Creating Graphical User Interfaces

(ff) #1

Create a Table Containing Mixed Data Types


Display mixed data types by setting the Data property to a cell array.


load patients LastName Age Weight Height SelfAssessedHealthStatus % load data
PatientData = [LastName num2cell([Age Weight Height]) SelfAssessedHealthStatus]; % convert to cell array


t.Data = PatientData;


Customize the Display


You can customize the display of a table in several ways. Use the ColumnName property to
add column headings. To create multiline headings, use the pipe (|) symbol.


t.ColumnName = {'LastName', 'Age', 'Weight', 'Height', 'Self Assessed|Health Status'};


Programmatic App that Displays a Table
Free download pdf