1 Star 0 Fork 1

nealliu / rrt_dynamic

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
circle.m 381 Bytes
Copy Edit Web IDE Raw Blame History
Chahat Deep Singh authored 2017-04-27 05:04 . First Commit
function circle(x,y,r)
%x and y are the coordinates of the center of the circle
%r is the radius of the circle
%0.01 is the angle step, bigger values will draw the circle faster but
%you might notice imperfections (not very smooth)
hold on
for ri=0:r/100:r
ang=0:0.01:2*pi;
xp=ri*cos(ang);
yp=ri*sin(ang);
plot(x+xp,y+yp,'Color',[0 0 1]);
end
plot(x+xp,y+yp,'k');
end

Comment ( 0 )

Sign in for post a comment

Matlab
1
https://gitee.com/nealliu/rrt_dynamic.git
git@gitee.com:nealliu/rrt_dynamic.git
nealliu
rrt_dynamic
rrt_dynamic
master

Search