[X, Y, Z] = knot()
[X, Y, Z] = knot(n)
knot()
knot(n)
knot(ax, n)
| Parameter | Description |
|---|---|
| n | Number of facets around the tube cross-section: positive whole number (default 16). |
| ax | Target axes: 'axes' object. |
| Parameter | Description |
|---|---|
| X, Y, Z | x-, y-, and z- coordinates of the knot surface without drawing it. |
knot builds and plots a smooth tube swept around a trefoil knot curve (the classic (2,3) torus knot).
The curve is analytic, so the tube is generated by sweeping a circular cross-section along the Frenet frame (tangent, principal normal and binormal) of the curve.
f = figure();
knot();
axis equal
title('Trefoil knot');
| Version | Description |
|---|---|
| 1.0.0 | initial version |