% Three-Petal Rose
% Parametric equations:
% x = a*cos(3t)*cos(t)
% y = a*cos(3t)*sin(t)
clc;
clear;
close all;
a = 2;
% Use many points for a smooth curve
t = linspace(0, 2*pi, 1000);
x = a*cos(3*t).*cos(t);
y = a*cos(3*t).*sin(t);
plot(x, y, 'LineWidth', 2);
title('Three-Petal Rose');
xlabel('x');
ylabel('y');
grid on;
axis equal;
To embed this project on your website, copy the following code and paste it into your website's HTML: