Commit bba038d1432f3db04181dbeaee758e9ef1e5f174
1 parent
505d9a5140
Exists in
master
add fs arg
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
psdplot.m
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | filename = argv(){1}; |
4 | 4 | col = eval(argv(){2}); |
5 | 5 | mult = eval(argv(){3}); |
6 | +data.rate = eval(argv(){4}); | |
6 | 7 | |
7 | 8 | if length(col) == length(mult) |
8 | 9 | figure |
... | ... | @@ -11,7 +12,6 @@ |
11 | 12 | cc = 'bkcgmry'; |
12 | 13 | for i = [1:length(col)] |
13 | 14 | data.freq = load(filename)(:,col(i)).*mult(i); |
14 | - data.rate = 1; | |
15 | 15 | [p, f] = pwelch(data.freq, [], 0.95, [], data.rate.*mult(i), 'onesided'); |
16 | 16 | semilogx(f, 10*log10(p), cc(mod(i, length(cc)))) |
17 | 17 | leg{i} = strcat(filename, ' col', num2str(col(i))); |