source: MML/trunk/machine/SOLEIL/StorageRing/modelalpharesponsemat.m @ 4

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 
1function [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
7if nargin <1
8    FileName = 'Rmatrix_alpha';
9end
10   
11[DKx DKz DtuneVal]   = modeltunesensitivity;
12[DSx DSz DchroVal]   = modelchrosensitivity;
13[QuadRmcf1 QuadRmcf2]= modelmcfsensitivity('Quad');
14[SextuRmcf1 SextuRmcf2]=modelmcfsensitivity('Sextu');
15
16DirectoryName = getfamilydata('Directory', 'OpsData');
17
18DirStart = pwd;
19[DirectoryName, ErrorFlag] = gotodirectory(DirectoryName);
20if ErrorFlag
21    fprintf('\n   There was a problem getting to the proper directory!\n\n');
22end
23save(FileName, 'DtuneVal', 'DchroVal', 'QuadRmcf1', 'QuadRmcf2', 'SextuRmcf1', 'SextuRmcf2');
24
25cd(DirStart);
Note: See TracBrowser for help on using the repository browser.