⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawellipse.m

📁 it is a matlab file foe develop SLAM localization this is a toolbox for develop develop realtime e
💻 M
字号:
%DRAWELLIPSE Draw ellipse.%   DRAWELLIPSE(X,A,B,COLOR) draws an ellipse at X = [x y theta]%   with half axes A and B. Theta is the inclination angle of A,%   regardless if A is smaller or greater than B. COLOR is a%   [r g b]-vector or a color string such as 'r' or 'g'.%%   H = DRAWELLIPSE(...) returns the graphic handle H.%%   See also DRAWPROBELLIPSE.% v.1.0-v.1.1, Aug.97-Jan.03, Kai Arras, ASL-EPFL% v.1.2, 03.12.03, Kai Arras, CAS-KTH: (x,a,b) interface function h = drawellipse(x,a,b,color);% ConstantsNPOINTS = 100;                   % point density or resolution% Compose point vectorivec = 0:2*pi/NPOINTS:2*pi;     % index vectorp(1,:) = a*cos(ivec);           % 2 x n matrix whichp(2,:) = b*sin(ivec);           % hold ellipse points% Translate and rotatexo = x(1); yo = x(2); angle = x(3);R  = [cos(angle) -sin(angle); sin(angle) cos(angle)];T  = [xo; yo]*ones(1,length(ivec));p = R*p + T;% Ploth = plot(p(1,:),p(2,:),'Color',color);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -