aboutsummaryrefslogtreecommitdiffstats
path: root/Project/RTDSP/Matlab/create_spectrogram.m
blob: 5bf2661e7ddfe79ab95f92e864802bc48845eaf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%%
% Creates the spectrogram for the audio files

[song, fs] = audioread('../audio/best_case/car.wav');
song = song(1:fs*10);
figure
spectrogram(song, 256, [], [], fs, 'yaxis');

%%
[song, fs] = audioread('../audio/original/car1.wav');
song = song(1:fs*10);
figure
spectrogram(song, 256, [], [], fs, 'yaxis');

%%
[song, fs] = audioread('../audio/original/clean.wav');
song = song(1:fs*10);
figure
spectrogram(song, 256, [], [], fs, 'yaxis');