Can MATLAB read WAV file?
Read Audio File
Use the audioread function to read the file, handel. wav . The audioread function can support other file formats. For a full list of viable formats, see Supported File Formats for Import and Export.
How to make a spectrogram in MATLAB?
Use the spectrogram function to measure and track the instantaneous frequency of a signal. Generate a quadratic chirp sampled at 1 kHz for two seconds. Specify the chirp so that its frequency is initially 100 Hz and increases to 200 Hz after one second. fs = 1000; t = 0:1/fs:2-1/fs; y = chirp(t,100,1,200,'quadratic');