From b12818783c09b8d097332dcc16c344fcfff292a9 Mon Sep 17 00:00:00 2001 From: bma Date: Tue, 8 May 2018 07:28:24 +0200 Subject: [PATCH] use log repeated tau pattern --- allanplot.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allanplot.m b/allanplot.m index 2803df3..0a56487 100755 --- a/allanplot.m +++ b/allanplot.m @@ -42,7 +42,7 @@ if length(col) == length(mult) end endif data.rate = fs(i); - [ad, S, err, tau] = allan(data, 2.^[0:nextpow2(length(data.freq))-3]./data.rate, strcat(strsplit(filename, '/'){end}, num2str(i)), 0); + [ad, S, err, tau] = allan(data, horzcat(reshape([1:0.1:9]'.*10.^[0:round(log10(length(data.freq)))-1],1,[]), 10^(round(log10(length(data.freq)))-1))./data.rate, strcat(strsplit(filename, '/'){end}, num2str(i)), 0); loglogerr(tau, ad, err, strcat(cc(mod(i, length(cc))), '-s')) leg{i} = strcat(filename, ' col', num2str(col(i))); axis(10.^ceil(log10([tau(1), tau(end)]))) -- 2.16.4