Commit 8367d595874e86dbe45254397b50ba2bdf566bc4
1 parent
b197c3fdf0
Exists in
master
add great script
Showing 1 changed file with 14 additions and 0 deletions Side-by-side Diff
temp2allan.m
1 | +#!/usr/bin/octave-cli | |
2 | + | |
3 | +filename = argv(){1}; | |
4 | +col = eval(argv(){2}); | |
5 | +mult = eval(argv(){3}); | |
6 | + | |
7 | +data.freq = load(filename)(:,col).*mult; | |
8 | +data.rate = 1; | |
9 | + | |
10 | +[ad, s, err, tau] = allan(data, 2.^(0:12), '', 0); | |
11 | +tosave = vertcat(tau, ad, err)'; | |
12 | +save('-ascii', strcat(strsplit(filename, '.'){1}, '_ad.dat'), 'tosave'); | |
13 | + | |
14 | +exit |