How to generate this pin wheel toy dataset?

2 views (last 30 days)
I don't konw how to generate this pin wheel by code or Equation. Can someone help me?

Accepted Answer

Peter Orthmann
Peter Orthmann on 31 Jul 2020
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;
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);

More Answers (0)


Find more on Model Predictive Control Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!