Fit logarithmic spiral to x,y data

版本 1.0.0.0 (19.7 KB) 作者: H.J. Sommer
Fits logarithmic sprial r=a*exp(b*theta) to x,y data points.
2.2K 次下载
更新时间 2008/10/15

查看许可证

Logaritmic spirals often occur in nature such as the cross section of a chambered nautilus, atmospheric vortices around regions of low pressure and spiral arms of galaxies. Polar form for a log spiral with center at the origin is r=a*exp(b*theta). A general log sprial with center at xc,yc is then x=xc+r*cos(theta) and y=yc+r*sin(theta). This code fits coefficients a,b and center location xc,yc to data points along the log spiral curve. It uses the nonlinear Nedler-Mead simplex routine "fminsearch" to find the best center location and a simple linearized least-squares solution for coefficients a,b. The code provides an RMS measure for goodness-of-fit.

引用格式

H.J. Sommer (2024). Fit logarithmic spiral to x,y data (https://www.mathworks.com/matlabcentral/fileexchange/21749-fit-logarithmic-spiral-to-x-y-data), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Fit Postprocessing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0