aboutsummaryrefslogtreecommitdiffstats
path: root/Project/RTDSP/Matlab/create_spectrogram.m
blob: 44acee286ff9295a5738c64723d710c520184552 (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/phantom4.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');