Code covered by the BSD License  

Highlights from
arbitrary equal division function

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 3.81 KB File ID: #34796
image thumbnail

arbitrary equal division function

by TCH

 

26 Jan 2012

divide an arbitrary curve into pieces along the curve without coordinate dependency

| Watch this File

File Information
Description

Divide an arbitrary curve into pieces along the curve without coordinate dependency. Example script file generating the title screen shot shows below:

%spiral of Archimedes
a=1;
t=0:0.2:20; % theta
r=a*t; % r
x = r.*cos(t);
y = r.*sin(t);
z = t;
% polar(t,r,'-or');
subplot(1,2,1);
plot3(x,y,z,'-r');axis equal;
grid on;
[xx,yy,zz] = CurveSliceHomogenize3D(x,y,z,400);
hold on;
plot3(xx,yy,zz,'-*k');axis equal;
title('spiral of Archimedes');

Required Products MATLAB
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)
31 Jan 2012 TCH

I confess that my implementation is not as good as the follow job. good for him/her :-]
http://www.mathworks.com/matlabcentral/fileexchange/7233-curvspace
if you have got the same problem of spacing a curve into equally several pieces you'd better refer to the link above directly and save your time.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
curve equal division TCH 26 Jan 2012 15:19:15
data import TCH 26 Jan 2012 15:19:15
measurement TCH 26 Jan 2012 15:19:16
demo TCH 26 Jan 2012 15:19:16
optimization TCH 26 Jan 2012 15:19:16
simulation TCH 26 Jan 2012 15:19:16
interpolation TCH 26 Jan 2012 15:19:16

Contact us at files@mathworks.com