How to generate this pin wheel by code or Equation

I don't know how to generate this pin wheel by code or Equation. Can someone help me?

 채택된 답변

Peter Orthmann
Peter Orthmann 2020년 7월 31일
How about this:
% Pin Wheel
r = 0:100;
v = 2*pi*r/200; % fit
n = 5;
m = 1; % fit
r0 = 0.5*max(r)^m; % fit
figure;hold on;
plot(0,0,'o');
for ii=1:n
plot(r.^m.*sin(v+2*pi*(ii-1)/n)/r0, r.^m.*cos(v+2*pi*(ii-1)/n)/r0);
end

댓글 수: 2

z cy
z cy 2020년 8월 5일
Thanks!
z cy
z cy 2020년 8월 5일
I dont know why I cannot accept ur answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

질문:

2020년 7월 31일

댓글:

2020년 8월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by