function B = remove_nan_rows(A)
v=sum(A,2);
B = A(not(isnan(v)),:) 
end  