Commit 419afee41de074fe70b4594a7f9882bf6b682dba
1 parent
bba038d143
Exists in
master
hanning windowing with 0.5 overlapping
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
psdplot.m
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | cc = 'bkcgmry'; |
13 | 13 | for i = [1:length(col)] |
14 | 14 | data.freq = load(filename)(:,col(i)).*mult(i); |
15 | - [p, f] = pwelch(data.freq, [], 0.95, [], data.rate.*mult(i), 'onesided'); | |
15 | + [p, f] = pwelch(data.freq, hanning(length(data.freq)/8), 0.5, [], data.rate, 'onesided'); | |
16 | 16 | semilogx(f, 10*log10(p), cc(mod(i, length(cc)))) |
17 | 17 | leg{i} = strcat(filename, ' col', num2str(col(i))); |
18 | 18 | hold on |