MATLAB Examples

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

Read about the fplot function in the MATLAB documentation.

For more examples, go to MATLAB Plot Gallery

% Create a parametric function plot x(t) = sin(2*t), y(t) = sin(3*t)
x = @(t) sin(2*t);
y = @(t) sin(3*t);

% Add labels and title
title('x(t) = sin(2*t), y(t) = sin(3*t)')