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

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -