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.
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]);
