clc
clear

t = linspace(-20*pi, 20*pi, 1000); 
x = sin(t) .* (exp(cos(t)) - 2*cos(4*t) + sin(t/12));
y = cos(t) .* (exp(cos(t)) - 2*cos(4*t) + sin(t/12));
plot(x, y, 'b', 'LineWidth', 2);
hold on;
plot(-x, -y, 'r--', 'LineWidth', 2);
title('Astroid Plot');
xlabel('x');
ylabel('y');
legend('Astroid 1', 'Astroid 2');
axis equal;
hold off;

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: