curvature to cartesian

バージョン 1.0.0.0 (2.05 KB) 作成者: NeuralDip
with this function you can convert a (curvature- curve length) relation to Cartesian coordinates.
ダウンロード: 1.2K
更新 2016/3/31

ライセンスの表示

%This function it is used to transform a (curvature-curve length) relation
%to cartesian coordinates.k=f(s)->x=x(t),y=y(t)
%usage:[xo yo]=curv2cart(a,b,c,d,e,l,p)
%'a','b','c','d' and 'e' are part of the polynomial
%relation : k=a*s^4+b*s^3+c*s^2+d*s+e;
%l: length of the curve in points
%p: precision.Distance between two points.
%
%EXAMPLES:
%
%curv2cart(0,0,0,0,c,10,0.001); %plots a circle of radius c
%curv2cart(0,0,0,0,c,10,0.1); %plots a badly calculated circle due to low
%precision
%
%Interesting and reason for existance of this function, are the polynomial
%spirals:
%
%curv2cart(0,0,0,1,0,10,0.001); %k=s
%curv2cart(0,0,1,0,0,10,0.001); %k=s^2
%curv2cart(0,0,1,0,-2.19,10,0.001); %k=s^2-2.19
%curv2cart(0,0,1,0,-4,10,0.001); %k=s^2-4
%curv2cart(0,0,1,0,1,10,0.001); %k=s^2+1
%curv2cart(5,0,-18,0,5,4,0.001); %k=5s^4-18s^2+5
%
%curv2cart, creates some cool pseudofractals:
%
%curv2cart(0,0,2,0,-1,50,0.01);

引用

NeuralDip (2024). curvature to cartesian (https://www.mathworks.com/matlabcentral/fileexchange/23122-curvature-to-cartesian), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCartesian Coordinate System Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0

BSD Update