1 | %save current params with the name of experiement |
---|
2 | if not(isdir(['data/' experiement])) |
---|
3 | mkdir(['data/' experiement]) |
---|
4 | end |
---|
5 | fformat='%s %10.4e\n'; |
---|
6 | f = fopen(['data/' experiement '/params.txt' ], 'w'); |
---|
7 | fprintf(f,fformat,'gamma', params.gamma); |
---|
8 | fprintf(f,fformat,'d',params.d); |
---|
9 | fprintf(f,fformat,'a/d',params.a_coeff); |
---|
10 | fprintf(f,fformat,'h',params.h); |
---|
11 | fprintf(f,fformat,'n',params.n); |
---|
12 | fprintf(f,fformat,'theta0',params.theta0); |
---|
13 | fprintf(f,fformat,'M',params.M); |
---|
14 | fprintf(f,fformat,'L',params.L); |
---|
15 | fprintf(f,fformat,'R_0',params.r0); |
---|
16 | |
---|
17 | fclose(f); |
---|