How to generate this pin wheel toy dataset?
8 次查看(过去 30 天)
显示 更早的评论
I don't konw how to generate this pin wheel by code or Equation. Can someone help me?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/339874/image.jpeg)
0 个评论
采纳的回答
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
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Predictive Control Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!