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?)
What is your array? Is it a cell array, or a table? Let's say it's a cell array, then just get the edit field and assign it to whatever column you want
editString = get(handles.edit1, 'String');
ca{2, columnNumber} = editString;
Or if it's a table
rowToChange = 2; % Whatever....
% Change value in row 2 of column called "Col8". t is the table variable.
Best Answer