How Can I Detect Notes Using A Spectrogram Matlab

How Can I Detect Notes Using A Spectrogram Matlab