how to plot the path of circular beam oscillation welding?
1 次查看(过去 30 天)
显示 更早的评论
hey guys i want to use matlab plot this picture(b)
here is my code:
A=1;
f=50;
vf=0.015;
time=linspace(0,2*pi);
x=A*cos(time*2*f*pi)+vf*time;
y=A*sin(time*2*f*pi);
plot(x,y);
0 个评论
回答(1 个)
Alan Stevens
2023-7-12
Like this?
A=1;
f=50;
vf=0.02;
time = linspace(0,100,500);
x0 = vf*time;
theta = 2*pi*f*time;
x=A*cos(theta)+x0;
y=A*sin(theta);
plot(x,y);
axis equal
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!