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

📄 prex1.m

📁 模式识别工具箱,本人毕业论文时用到的,希望对大家有用!
💻 M
字号:
%PREX1 PRTOOLS example of classifiers and scatter plothelp prex1pause(1)echo onA = gendath(100,100); % Generate Highleyman's classes						% Training set c (20 objects / class)						% Test set d (80 objects / class)[C,D] = gendat(A,20);						% Compute classifiersw1 = ldc(C);						% linearw2 = qdc(C);						% quadraticw3 = parzenc(C);						% Parzenw4 = lmnc(C,3);% Neural Net						% Compute and display errorsdisp([testd(D*w1),testd(D*w2),testd(D*w3),testd(D*w4)]);	  					% Plot data and classifiersfigure(1);hold off;scatterd(A); drawnow;plotd(w1,'-'); drawnow;plotd(w2,'-.'); drawnow;plotd(w3,'--'); drawnow;plotd(w4,':'); drawnow;echo off

⌨️ 快捷键说明

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