semloadiax.m 344 Bytes
Newer Older
Simone Liuzzo's avatar
Simone Liuzzo committed
1 2 3
function iaxemz = semloadiax(datadir)
%IAXEMZ=SEMLOADIAX(DATADIR) load IAX values

Simone Liuzzo's avatar
Simone Liuzzo committed
4
iaxemz=NaN(5,1);
Simone Liuzzo's avatar
Simone Liuzzo committed
5
try
6
    dest=[1:5];      % destination of the values read from file
Simone Liuzzo's avatar
Simone Liuzzo committed
7
    iax=load(fullfile(datadir, 'iaxemittance'));
Simone Liuzzo's avatar
Simone Liuzzo committed
8
    iaxemz(dest)=iax.iax_values; % [m]
Simone Liuzzo's avatar
Simone Liuzzo committed
9 10 11 12 13
catch
    warning('sem:noiax','Cannot read IAX data from the data directory');
end
end