To add an entry to a specific cell in a MATLAB table, you can use indexing and cell assignment.
Suppose you have a table T
:
main.m128 chars3 lines
To add an entry to the third row, second column (i.e., the age of 'Anne') you can use:
main.m18 chars2 lines
This will change the value of the cell at row 3 and column 'Age' to 44.
You can also use the dot notation to access and modify the cell:
main.m15 chars2 lines
Both of these methods will achieve the same result.
gistlibby LogSnag