MATLAB: How to delete a whole table in the matlab table I am running a loop which builds table and I need to delete the whole table for the next table. I used clear like "clear tablename" command but the table did not deleted. Any suggestion? Best Answer tablename = []; Related SolutionsMATLAB: Cells merging in table a)varfun(@(c) {vertcat(c{:})}, table1, 'GroupingVariables', 'Var1', 'InputVariables', 5:width(table1))b)varfun(@(c) {vertcat(c{:})}, table1, 'GroupingVariables', {'Var1', 'Var2'}, 'InputVariables', 5:width(table1))c)varfun(@(c) {vertcat(c{:})}, table1, 'GroupingVariables', {'Var1', 'Var2', 'Var3'}, 'InputVariables', 5:width(table1)) MATLAB: Delete the whole row mask = all(isnan(YourArray),2);YourArray(mask, :) = []; Related QuestionKeep specific column variables and delete othersDelete rows in a tableHow to delete rows in a table where table variable equals some integerDelete specific rows in tableAll tables in the bracketed expression must have the same number of variables.Delete middle rows in tableTable, delete columns with zero
Best Answer