arbitrary equal division function
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |