Commit 7ec25ad9fc3fba265c89dd1960e88444fdb1e548
1 parent
7bd8746382
Exists in
master
allanplot_cov.m: add save option
Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff
allanplot_cov.m
... | ... | @@ -5,6 +5,7 @@ |
5 | 5 | col2 = eval(argv(){3}); |
6 | 6 | mult1 = eval(argv(){4}); |
7 | 7 | mult2 = eval(argv(){5}); |
8 | +arg_save = eval(argv(){6}); | |
8 | 9 | |
9 | 10 | if length(col1) == length(mult1) |
10 | 11 | figure |
... | ... | @@ -30,6 +31,11 @@ |
30 | 31 | leg{i} = strcat(filename, ' cov col', num2str(col1(i)), ' col', num2str(col2(i))); |
31 | 32 | axis(10.^ceil(log10([tau(1), tau(end)]))) |
32 | 33 | hold on |
34 | + if arg_save ==1 | |
35 | + filenameout = strcat(strsplit(filename,'.'){1},'-cov-',num2str(col1),num2str(col2),'.sig') | |
36 | + datatosave = horzcat(tau', ad', err'); | |
37 | + save('-ascii', filenameout , 'datatosave'); | |
38 | + end | |
33 | 39 | end |
34 | 40 | legend(leg) |
35 | 41 | input("Press to continue..."); |