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
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 (2026). 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 LinuxCategories
Find more on Interpolation in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
