zp_out = ZernikePolynomial(noll_order,rho,theta)
Returns the value of the Zernike polynomial of order noll_order at normalized radius rho and angle theta: 0<=rho<=1 0<=theta<=2pi. rho and theta may be scalar or matrix quantity.
Parameters |
Description |
noll_order [scalar] |
Noll order for required Zernike polynomial |
rho [matrix] |
Radius values |
theta [matrix] |
Theta values |
Return Values |
Description |
zp_out [vector] |
Zernike polynomial values |
>> x = ((1:64)-(64/2+1))*0.01;
>> [y,x] = meshgrid(x,x);
>> rad = sqrt(x.^2+y.^2);
>> theta = atan2(y,x);
>> rho = rad./0.25;
>> z = ZernikePolynomial(5,rho,theta);
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|