pbos@webrtc.org | 788acd1 | 2014-12-15 09:41:24 +0000 | [diff] [blame] | 1 | function [] = plotDetection(PCMfile, DATfile, fs, chunkSize) |
| 2 | %[] = plotDetection(PCMfile, DATfile, fs, chunkSize) |
| 3 | % |
| 4 | %Plots the signal alongside the detection values. |
| 5 | % |
| 6 | %PCMfile: The file of the input signal in PCM format. |
| 7 | %DATfile: The file containing the detection values in binary float format. |
| 8 | %fs: The sample rate of the signal in Hertz. |
| 9 | %chunkSize: The chunk size used to compute the detection values in seconds. |
| 10 | [x, tx] = readPCM(PCMfile, fs); |
| 11 | [d, td] = readDetection(DATfile, fs, chunkSize); |
| 12 | plot(tx, x, td, d); |