I have the following table T:
LastName Age Smoker Height Weight BloodPressure _________ ___ ______ ______ ______ _____________ empty empty empty empty empty empty 'Sanchez' 38 true 71 176 124 93 empty empty empty empty empty empty 'Johnson' 43 false 69 163 109 77 empty empty empty empty empty empty 'Li' 38 true 64 131 125 83 empty empty empty empty empty empty 'Diaz' 40 false 67 133 117 75 empty empty empty empty empty empty 'Brown' 49 true 64 119 122 80 empty empty empty empty empty empty
I want to remove all the rows that contain the string 'empty'. I've searched but the examples I found was to search on a particular column but I want to search on all columns.
T(cellfun(@isempty, strfind(T.columnName, 'empty')), :);
Best Answer