I can’t run your code because I don’t have an initial value for ‘h’. However, one possible source of your NaN value is attempting to extrapolate with interp1 without telling it you want to extrapolate.
See if this prevents the NaN value from appearing:
CD(row,col) = interp1(Re_table,CD_table,log10(Re(row,col)), 'linear', 'extrap');