Adding rows to matlab table -
i have table named patients
in matlab created reading excel file using readtable
command. add new row table programmatically. have attempted following:
patients.lastname{end+1} = 'stewart';
while add value @ correct spot in table, gives generic name row. rownames
property in instance important.
how add new row table in matlab , give name, populate it's contents?
this because other entries except last name empty. no worries. in order assign specific rownames, please use following statement. lets suppose want assign last names row names of table.
patients.properties.rownames = patients.lastname;
Comments
Post a Comment