No BSD License  

Highlights from
curvature to cartesian

1.0

1.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 2.05 KB File ID: #23122
image thumbnail

curvature to cartesian

by skouliki katelouzos

 

26 Feb 2009

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

| 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

Contact us at files@mathworks.com