1.0

1.0 | 1 rating Rate this file 20 downloads (last 30 days) File Size: 2.05 KB File ID: #23122

curvature to cartesian

by skouliki katelouzos

 

26 Feb 2009

No BSD License  

with this function you can convert a (curvature- curve length) relation to Cartesian coordinates.

Download Now | Watch this File

File Information
Description

%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);

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
12 May 2009 James  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
interpolation skouliki katelouzos 26 Feb 2009 13:25:04
curv2cart skouliki katelouzos 26 Feb 2009 14:25:20
pseudo fractals skouliki katelouzos 26 Feb 2009 14:25:20
polynomial spirals skouliki katelouzos 26 Feb 2009 14:25:20
curvature skouliki katelouzos 26 Feb 2009 14:43:46
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com