prex_plotc.m

来自「matlab的模式识别toolbox」· M 代码 · 共 25 行

M
25
字号
%PREX_PLOTC  PRTools example on the dataset scatter and classifier plothelp prex_plotcecho on              % Generate Higleyman dataA = gendath([100 100]);               % Split the data into the training and test sets[C,D] = gendat(A,[20 20]);              % Compute classifiersw1 = ldc(C);        % linearw2 = qdc(C);        % quadraticw3 = parzenc(C);    % Parzenw4 = lmnc(C,3);      % neural net              % Compute and display errors              % Store classifiers in a cellW = {w1,w2,w3,w4};              % Plot errorsdisp(D*W*testc);                  % Plot the data and classifiersfigure              % Make a scatter-plotscatterd(A);                          % Plot classifiersplotc({w1,w2,w3,w4});   echo off

⌨️ 快捷键说明

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