📄 plotw.m
字号:
function h = plotw(w,nrc)% h = plotw(w,nrc)%% Plot the real value output of classifier w...% ...not completely supported...% Copyright: D. Tax, R.P.W. Duin, davidt@ph.tn.tudelft.nl% Faculty of Applied Physics, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlandsif nargin<2 nrc = 10;end% first determine the grid:V = axis;[grid,x,y] = makegriddat(V(1),V(2),V(3),V(4));% determine the sizelx = length(x);ly = length(y);% make the outputz = w*grid;% see if z has the right sizeif (size(z,2)>2) error('Data z does not have appropriate size');endif (size(z,2)==2) z = z(:,1) - z(:,2); [c,h] = contourf(x,y,reshape(+z,ly,lx),nrc); hold on; [c2,h2] = contour(x,y,reshape(+z,ly,lx),[0 0]); set(h2,'linewidth',2,'edgecolor','w');else hold on; [c,h] = contourf(x,y,reshape(+z,ly,lx),nrc);endreturn
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -