Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2025-12-17 20:23:15
Size: 358
Comment: Initial commit
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.
Line 13: Line 13:
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 [[MATLAB/DataTypes#Function_Handle|function handles]] or [[MATLAB/DataTypes#Symbolic_Variable|symbolic expressions]] corresponding to ''x(t)'', ''y(t)'', and ''z(t)''. The fourth argument is the range of the parameter to render.
Line 20: Line 24:
fplot3(x(t), y(t), z(t), [-2,2]); fplot3(x(t), y(t), z(t), [0,10]);

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)