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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -