Blame view
allanplot.m
639 Bytes
b197c3fdf first commit |
1 2 3 4 5 |
#!/usr/bin/octave-cli --persist filename = argv(){1}; col = eval(argv(){2}); mult = eval(argv(){3}); |
2f13b7356 add multiple colu... |
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
if length(col) == length(mult) figure hold all grid on cc = 'bkcgmry'; for i = [1:length(col)] data.freq = load(filename)(:,col(i)).*mult(i); data.rate = 1; [ad, S, err, tau] = allan(data, 2.^[0:nextpow2(length(data.freq))-3]./data.rate, strcat(strsplit(filename, '/'){end}, num2str(i)), 0); loglogerr(tau, ad, err, cc(mod(i, length(cc)))) leg{i} = strcat(filename, ' col', num2str(col(i))); hold on end legend(leg) input("Press to continue..."); end |
b197c3fdf first commit |
22 |
exit |