From ac55966f52ab7b3f7d234b290c30047eafb5bcd3 Mon Sep 17 00:00:00 2001 From: manu Date: Tue, 4 Dec 2007 15:48:28 +0000 Subject: [PATCH] fix fmax & fmin git-svn-id: http://svn.parisson.org/svn/CNAQ/trunk@126 5fc3e0e6-29bc-4d03-b52b-c088cb822bde --- tests/getdelay.m | 2 +- tests/plotdelay.m | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/getdelay.m b/tests/getdelay.m index c950e64..a9f0cb2 100644 --- a/tests/getdelay.m +++ b/tests/getdelay.m @@ -10,7 +10,7 @@ f_min=100; f_max=20000; lt=5; t=0:1/44100:lt; -sig=0.9*chirp(t,20,lt,20000,'logarithmic'); +sig=0.9*chirp(t,f_min,lt,f_max,'logarithmic'); len_sig = length(sig); %playrecord signal diff --git a/tests/plotdelay.m b/tests/plotdelay.m index 2b5a913..56248a9 100644 --- a/tests/plotdelay.m +++ b/tests/plotdelay.m @@ -1,4 +1,4 @@ -function [mfv,ecart]=getdelay(n) +function [mfv,ecart]=plotdelay(n) %this function allows measuring the lattency of the playrecord process for %n generation/acquisition operations if nargin < 1, n = 10; end @@ -6,9 +6,9 @@ if nargin < 1, n = 10; end %signal generation f_min=100; f_max=20000; -lt=5; +lt=2; t=0:1/44100:lt; -sig=0.9*chirp(t,20,lt,20000,'logarithmic'); +sig=0.9*chirp(t,f_min,lt,f_max,'logarithmic'); len_sig = length(sig); %playrecord signal @@ -21,10 +21,10 @@ for it = 1:n end -mfv=mode(delai); -ecart=std(delai); -mfvt =num2str(mfv); -sprintf('%s','the most frequent delay is ', mfvt,' samples.') +% % mfv=mode(delai); +% % ecart=std(delai); +% mfvt =num2str(mfv); +% sprintf('%s','the most frequent delay is ', mfvt,' samples.') %Plot results hist(delai) -- 2.39.5