Matlab does not render text fields with a NaN in position-vector. matlab2tikz does now the same (priorly it produced uncompilable tex code where pgfplot got NaNs where it could not handle it).