MATLAB: Erasing all the rows that begin with NaN

matri

I have a cell matric.
The first two columns of this matrix are
[1x28 char] [ NaN]
[ NaN] [ NaN]
'MART' 'TOTATRIA'
'PREGORY' 'TOSTE'
[ NaN] [ NaN]
My goal is to erase these rows which have as a first element NaN
In the above example I want to erase row2 and the last one
thanks

Best Answer

just
out = A(~cellfun(@(x)all(isnan(x)),A(:,1)),:)