arbitrary equal division function

Version 1.0.0.0 (3.81 KB) by TCH
divide an arbitrary curve into pieces along the curve without coordinate dependency
400 Downloads
Updated 26 Jan 2012

View License

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

Cite As

TCH (2024). arbitrary equal division function (https://www.mathworks.com/matlabcentral/fileexchange/34796-arbitrary-equal-division-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0