image thumbnail

MATLAB Plot Gallery - Function Plot 3D

by

 

24 Feb 2012 (Updated )

Create a 3D line plot from a function

Function_Plot_3D

This is an example of how to create a 3D line plot from a function in MATLAB®.

Read about the ezplot function in the MATLAB documentation.

For more examples, go to MATLAB Plot Gallery

% Create the plot using the parametric functions
% x = cost(t), y = sin(t), and z = sin(5*t) for -pi < t < pi
figure
ezplot3('cos(t)', 'sin(t)', 'sin(5*t)', [-pi pi])

Contact us