MATLAB: Finding which rows in table contain NaN, save those as new table

findrowstable

Im looking to find a way to figure our which rows contain a 'NaN' in column 5, and then save all of those that do as a new table

Best Answer

Assuming your input is a table:
nantable = yourtable(isnan(yourtable{:, 5}), :) %keep all rows whose 5th column is nan