• Remix
  • Share
  • New Entry

on 13 Oct 2022
  • 2
  • 20
  • 0
  • 1
  • 276
% Credits for this code go to MATLAB STAFF, specificaly,
% to Mr. "Image Analyst", and Mr. Danz (located on MATLAB File Exchange)
% Fell free to Remix, and improve! :-)
numberOfPoints=5;
rotationAngle=0;
xCenter=3;
yCenter=4;
theta=(0:(numberOfPoints-1)/numberOfPoints*pi:(numberOfPoints-1)*pi)+rotationAngle;
amplitude=3;
x=amplitude.*cos(theta)+xCenter;
y=amplitude.*sin(theta)+yCenter;
plot(x,y,'r-.','LineWidth',10);
patch(x,y,'y')
axis pentagonal line;
Error using axis
Unknown command option pentagonal.
axis off
Remix Tree