I know this is old, but figured it might help someone else. For a more generic approach: Create a table with 1 row of empty values with the data types matching your original table . Assign that 'empty' table to the row you wish to clear in your original table. For example:
d = [1:3]';
t = [datetime;datetime;datetime];
s = ["hello";"yellow";"sandpaper"];
T = table(d,t,s);
varTypes = varfun(@class,T,'OutputFormat','cell');
T2 = table('Size',[1,width(T)],'VariableTypes',varTypes);
row2Clear = 2;
T(row2Clear,:) = T2;
This was the cleanest way I could figure out how to do it.
*Note for doubles MATLAB sets the field in the table to 0 when you clear it (unless I am missing something).