MATLAB: How to write a table with mixed values

arraycell arraysmatricestable

Hi All
how do I write a Table, that the first row is only string. in the next rows, the first column number, the second and third string, and the next ones number ?

Best Answer

You cannot do that with table() objects except by making everything string. You can define a Variable Description field for variables, but the description is only displayed if you use summarize(). table() objects are not designed for presentation purposes.
You also cannot do that with uitable() graphic objects except by making everything string. You can, though, define uitable ColumnName apart from the data values, which might be good enough for your purpose (do you just need the name displayed or do you need it to be stored with the table?)