joinvector.m

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

M
23
字号
function ret = joinvector ( t , tt , o ) # o specifies the columns that were omit. If o=1 we pick `t', if 0, `tt'.# joinvector makes a new vector by combining t and tt if ((nargin != 3))    usage ("joinvector(t,tt,o)");  endifs = size(t) ; h = s(2) ; ss = size(tt) ; hh = ss(2) ; l=0; ll=0;for newl=1:(h+hh)	if ( o(newl) ) 		l++;		v(newl) = t(l) ;	else 		ll++;		v(newl) = tt(ll) ;	endif		endforret = v ;

⌨️ 快捷键说明

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