Last change
on this file since 4 was
4,
checked in by zhangj, 10 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
827 bytes
|
Line | |
---|
1 | function [DtuneVal DchroVal QuadRmcf1 QuadRmcf2 SextuRmcf2] = modelalpharesponsemat(FileName) |
---|
2 | % Modelalpharesponsemat - save matrices in Operation directory |
---|
3 | % |
---|
4 | % TODO Confirmation message if file already existe |
---|
5 | % Merge latttice_prep ? |
---|
6 | |
---|
7 | if nargin <1 |
---|
8 | FileName = 'Rmatrix_alpha'; |
---|
9 | end |
---|
10 | |
---|
11 | [DKx DKz DtuneVal] = modeltunesensitivity; |
---|
12 | [DSx DSz DchroVal] = modelchrosensitivity; |
---|
13 | [QuadRmcf1 QuadRmcf2]= modelmcfsensitivity('Quad'); |
---|
14 | [SextuRmcf1 SextuRmcf2]=modelmcfsensitivity('Sextu'); |
---|
15 | |
---|
16 | DirectoryName = getfamilydata('Directory', 'OpsData'); |
---|
17 | |
---|
18 | DirStart = pwd; |
---|
19 | [DirectoryName, ErrorFlag] = gotodirectory(DirectoryName); |
---|
20 | if ErrorFlag |
---|
21 | fprintf('\n There was a problem getting to the proper directory!\n\n'); |
---|
22 | end |
---|
23 | save(FileName, 'DtuneVal', 'DchroVal', 'QuadRmcf1', 'QuadRmcf2', 'SextuRmcf1', 'SextuRmcf2'); |
---|
24 | |
---|
25 | cd(DirStart); |
---|
Note: See
TracBrowser
for help on using the repository browser.