how can I plot a peritrochoid curve?
17 次查看(过去 30 天)
显示 更早的评论
Hello, I am working on geometry of trochoidal-type engines like Wankel engines. For this I need to start coding with peritrochoid, however I couldnt plot. I have all the values just couldnt plot. Can you help me with this? Thank you.
0 个评论
回答(1 个)
Mathieu NOE
2021-11-18
hello
according to the equations given here , the coding is quite simple :
% The epitrochoid with R = 3, r = 1 and d = 1/2
R = 3;
r = 1;
d = 1/2;
theta = linspace(0,2*pi,100);
x = (R+r)*cos(theta) - d*cos((R+r)/r.*theta);
y = (R+r)*sin(theta) - d*sin((R+r)/r.*theta);
plot(x,y);
axis square
1 个评论
Star Strider
2021-11-18
If using degree angular measure, use sind() and cosd() instead of sin() and cos().
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!