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

📄 plotellipse.m

📁 混合高斯概率密度模型,其参数估计可以通过期望最大化( EM) 迭代算法获得。
💻 M
字号:
function h=PlotEllipse(s1)
%function h=PlotEllipse(s)
%plot ellipse s=[xpos,ypos, xscale, shear, yscale]
%returns handle h to the object
%
%University of Amsterdam, The Netherlands
%Author:Zoran Zivkovic, www.zoranz.net
%Date: 17-5-2005

nPoints=20;
w=0:2*pi/nPoints:2*pi;
rCircle=2*[cos(w);sin(w)];%circle
nPoints=length(w);
K=[s1(3:4)'; 0 s1(5)]';
rPlot1=K*rCircle+s1(1:2)*ones(1,nPoints);
h=plot(rPlot1(1,:),rPlot1(2,:),'k-');

⌨️ 快捷键说明

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