rbf_db.m
来自「matlab神经网络代码」· M 代码 · 共 27 行
M
27 行
function rbf_db(w, t, sigma, st_sz)% w - weights% t - centers% sigma - center spread% st_sz - step size to be used in grid for decision boundary%% plot decision boundary for the two class problemx=-4:st_sz:4; y=-3:st_sz:3;c=0; Z=[];for i=1:length(x), for j=1:length(y), c=c+1; Z(c,1:2)=[x(i) y(j)]; endendgridout = rbf_test(w,Z,t,sigma);Y = logical(gridout(:,2) > gridout(:,1));H = reshape(Y,length(y),length(x));contour(x,y,H,1)gridpl_circ([-2/3 0], 2.34, .01, 0);title('Decision Boundary')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?