A coherence length for matter waves