Differences between revisions 2 and 3
Revision 2 as of 2025-12-17 20:32:09
Size: 776
Comment: Clarifications
Revision 3 as of 2025-12-17 20:37:42
Size: 778
Comment: graph -> graphic
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The '''`fplot3`''' function creates a 3D graph of a parametric curve. The '''`fplot3`''' function creates a 3D graphic of a parametric curve.

MATLAB fplot3

The fplot3 function creates a 3D graphic of a parametric curve.


Usage

The fplot3 function is used to render parametric curves. Consider a curve to be defined like r(t) = [x(t) y(t) z(t)].

The first three arguments passed to fplot3 should be the function handles or symbolic expressions corresponding to x(t), y(t), and z(t). The fourth argument is the range of the parameter to render.

syms t;

x(t) = cos(t);
y(t) = -sin(t);
z(t) = t^2;

fplot3(x(t), y(t), z(t), [0,10]);

See also figures and related commands.


CategoryRicottone

MATLAB/FPlot3 (last edited 2025-12-17 20:37:42 by DominicRicottone)