bubble2d.m

来自「这是用matlab编写的支持向量机的函数工具箱」· M 代码 · 共 23 行

M
23
字号
function ret = bubble2d ( M , v , L , alpha , x , style ) # do a bubble tour of a gaussian # making plots versus x as we go  if ((nargin != 6)&&(nargin != 5))    usage ("bubblex ( M , v , L , alpha , x [,style] )");  endifif (nargin != 6)# need to fix up style	style = "-@63" ;endifvl=[] ; 	for l=1:L	v = alpha * v + sqrt((1.0-alpha^2)) * randn(size(v))*M  ;	vl(l,:) = [v] ;	gplot v u 1:2 w p 1 3#	plot(x,v,"-@63")endforret = vl ;endfunction# This whole thing is a bit pointless -- it shows a dot jumping around# in 2d.

⌨️ 快捷键说明

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