📄 prex3.m
字号:
%PREX3 PRTOOLS example of multi-class classifier plothelp prex3echo onglobal GRIDSIZEgs = GRIDSIZE;GRIDSIZE = 100; % generate 2 x 2 normal distributed classesa = +gendath(20); % data onlyb = +gendath(20); % data onlyA = [a; b + 5]; % shift 2 over [5,5]lab = genlab([20 20 20 20],[1 2 3 4]');% generate 4-class labelsA = dataset(A,lab); % construct datasethold off; % clear figurescatterd(A,'.'); drawnow;% make scatter plot for right sizew = qdc(A); % compute normal densities based quadratic classifierplotd(w,'col'); drawnow;% plot classification regionshold on;scatterd(A); % redraw scatter plotecho offGRIDSIZE = gs;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -