|
[求助]ansys分析后面型數(shù)據(jù)如何進行zernike多項式擬合? [復(fù)制鏈接] |
上一主題 下一主題 |
離線niuhelen
|
|
|
離線phility
|
可以用matlab編程,用zernike多項式進行波面擬合,求出zernike多項式的系數(shù),擬合的算法有很多種,最簡單的是最小二乘法,你可以查下相關(guān)資料,挺簡單的
|
離線phility
|
澤尼克多項式的前9項對應(yīng)象差的
|
離線niuhelen
|
回 2樓(phility) 的帖子
非常感謝啊,我手上也有zernike多項式的擬合的源程序,也不知道對不對,不怎么會有 function z = zernfun(n,m,r,theta,nflag) %ZERNFUN Zernike functions of order N and frequency M on the unit circle. % Z = ZERNFUN(N,M,R,THETA) returns the Zernike functions of order N % and angular frequency M, evaluated at positions (R,THETA) on the % unit circle. N is a vector of positive integers (including 0), and % M is a vector with the same number of elements as N. Each element % k of M must be a positive integer, with possible values M(k) = -N(k) % to +N(k) in steps of 2. R is a vector of numbers between 0 and 1, % and THETA is a vector of angles. R and THETA must have the same % length. The output Z is a matrix with one column for every (N,M) |