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);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1432668/image.jpeg)
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!