Skip to content
Snippets Groups Projects
Commit f66a8645 authored by Charlotte Bond's avatar Charlotte Bond
Browse files

only return one value for A if not astigmatic

parent 9090f1af
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,10 @@ function [A] = FT_Rc_to_Znm(Rc,R)
% Calculate Z20 amplitude
A(1) = (Ax+Ay)/2;
if length(Rc)>1
% Calculate Z22 astigmatic amplitude
A(2) = 2*(Ax-A(1));
end
% Convert amplitudes to nm
A = 1e9*A;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment