1 Star 0 Fork 4

钟涛/Shack-Hartmann-Simulator_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
indice.m 784 Bytes
一键复制 编辑 原始数据 按行查看 历史
SergioBonaqueGonzalez 提交于 2017-03-01 13:41 . Update indice.m
function [ngra mazi] = indice(jfin)
%Created by Sergio Bonaque-Gonzalez. Optical Engineer.
% This is an auxiliary function for compute Zernike coefficients.
n_gra = zeros(1, jfin + 10);
m_azi = zeros(1, jfin + 10);
% RADIAL DEGREES AND AZIMUTHAL FRENCUENCY ASSOCIATED TO POLYNOMIAL J INDEX.
n = 1;
j = 0.0;
while (j <= jfin)
for mm = 0:n
j = ((n * (n + 1.0)) / 2.0) + mm + 1.0;
if (paridad(n) ~= paridad(mm))
m = mm + 1;
else
m = mm;
end
n_gra(j) = n;
m_azi(j) = m;
end
n = n + 1;
end
ngra = n_gra(jfin);
mazi = m_azi(jfin);
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/aaron_zhong/Shack-Hartmann-Simulator_1.git
[email protected]:aaron_zhong/Shack-Hartmann-Simulator_1.git
aaron_zhong
Shack-Hartmann-Simulator_1
Shack-Hartmann-Simulator_1
master

搜索帮助