Effacer les filtres
Effacer les filtres

How to generate this pin wheel toy dataset?

8 vues (au cours des 30 derniers jours)
z cy
z cy le 31 Juil 2020
I don't konw how to generate this pin wheel by code or Equation. Can someone help me?

Réponse acceptée

Peter Orthmann
Peter Orthmann le 31 Juil 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;
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

Plus de réponses (0)

Catégories

En savoir plus sur Model Predictive Control Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by