How can I draw a circle in matlab using parametric ecuations or the circle ecuation?
2 ビュー (過去 30 日間)
古いコメントを表示
I need this for my homework and I managed to do it but the end result wasn't that smooth. Can somebody give me a simple, short code that gets the job done?
0 件のコメント
回答 (2 件)
Youssef Khmou
2014 年 3 月 14 日
hi, correct the word 'ecuations' for future searching. Parametric method is the easiest one :
t=0:0.1:2*pi;
x=cos(t);
y=sin(t);
plot(x,y);
0 件のコメント
Image Analyst
2014 年 3 月 14 日
Code examples are in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F Increase the number of samples if you want a smoother circle.
0 件のコメント
参考
カテゴリ
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!