% Define the parameters for the Lissajous curveA = 1; % Amplitude along x-axisB = 1; % Amplitude along y-axisa = 3; % Frequency along x-axisb = 2; % Frequency along y-axisdelta = pi/2; % Phase difference% Create a time vectort = linspace(0, 2*pi, 1000);
% Calculate the x and y coordinates of the Lissajous curvex = A * sin(a*t);
y = B * sin(b*t + delta);
% Plot the Lissajous curveplot(x, y);
title('Lissajous Curve');
xlabel('X-axis');
ylabel('Y-axis');