Skip to content
semloadiax.m 344 B
Newer Older
Simone Liuzzo's avatar
Simone Liuzzo committed
function iaxemz = semloadiax(datadir)
%IAXEMZ=SEMLOADIAX(DATADIR) load IAX values

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