⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 prex_mcplot.m

📁 这是模式识别方面的电子书籍
💻 M
字号:
%PREX-MCPLOT   PRTools example on a multi-class classifier plothelp prex_mcplotecho ongridsize(100)            % Generate twice normally distributed 2-class data in 2Da = +gendath([20,20]);    % data onlyb = +gendath([20,20]);    % data only            % Shift the second data by a vector [5,5]            % and combine it with the first dataset in to AA = [a; b+5];                  % Generate 4-class labelslab = genlab([20 20 20 20],[1 2 3 4]');            % Construct a 4-class dataset AA = dataset(A,lab);    A = setname(A,'4-class dataset')            % Plot this 4-class datasetfigure            % Make a scatter-plot of the right sizescatterd(A,'.'); drawnow;             % Compute normal densities based quadratic classifier  w = qdc(A);                 % Plot filled classification regionsplotc(w,'col'); drawnow;   hold on;            % Redraw the scatter-plotscatterd(A);     hold offecho off

⌨️ 快捷键说明

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