1 Star 0 Fork 1

nealliu / rrt_dynamic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
circle.m 381 Bytes
一键复制 编辑 原始数据 按行查看 历史
Chahat Deep Singh 提交于 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
Matlab
1
https://gitee.com/nealliu/rrt_dynamic.git
git@gitee.com:nealliu/rrt_dynamic.git
nealliu
rrt_dynamic
rrt_dynamic
master

搜索帮助