Commit b12818783c09b8d097332dcc16c344fcfff292a9

Authored by bmarechal
1 parent 601f6548f2
Exists in master

use log repeated tau pattern

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -42,7 +42,7 @@
42 42 end
43 43 endif
44 44 data.rate = fs(i);
45   - [ad, S, err, tau] = allan(data, 2.^[0:nextpow2(length(data.freq))-3]./data.rate, strcat(strsplit(filename, '/'){end}, num2str(i)), 0);
  45 + [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);
46 46 loglogerr(tau, ad, err, strcat(cc(mod(i, length(cc))), '-s'))
47 47 leg{i} = strcat(filename, ' col', num2str(col(i)));
48 48 axis(10.^ceil(log10([tau(1), tau(end)])))