R=aluebs@webrtc.org, bjornv@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/32769004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7893 4adac7df-926f-26a2-2b94-8c16560cd09d
13 lines
519 B
Matlab
13 lines
519 B
Matlab
function [] = plotDetection(PCMfile, DATfile, fs, chunkSize)
|
|
%[] = plotDetection(PCMfile, DATfile, fs, chunkSize)
|
|
%
|
|
%Plots the signal alongside the detection values.
|
|
%
|
|
%PCMfile: The file of the input signal in PCM format.
|
|
%DATfile: The file containing the detection values in binary float format.
|
|
%fs: The sample rate of the signal in Hertz.
|
|
%chunkSize: The chunk size used to compute the detection values in seconds.
|
|
[x, tx] = readPCM(PCMfile, fs);
|
|
[d, td] = readDetection(DATfile, fs, chunkSize);
|
|
plot(tx, x, td, d);
|