How to generate this pin wheel by code or Equation

1 visualización (últimos 30 días)
z cy
z cy el 31 de Jul. de 2020
Comentada: z cy el 5 de Ag. de 2020
I don't know how to generate this pin wheel by code or Equation. Can someone help me?

Respuesta aceptada

Peter Orthmann
Peter Orthmann el 31 de Jul. de 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
  2 comentarios
z cy
z cy el 5 de Ag. de 2020
Thanks!
z cy
z cy el 5 de Ag. de 2020
I dont know why I cannot accept ur answer.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by