📄 contour2d.m
字号:
function ret = contour2d ( M , mean , r , Thetan ) # makes a contour of a Gaussian distribution # where M is the chol of the covarianc matrix and r is the reqd "radius"theta = 0.0 ;dtheta = 2*3.14159 / ( Thetan - 1 ) ; list=[];# make contoursfor thetan=1:Thetan list(thetan,: ) = mean + r * [cos(theta), sin(theta)] * M ; theta = theta + dtheta ;endforret = list ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -