prex_plotc.m

来自「模式识别工具箱。非常丰富的底层函数和常见的统计识别工具」· M 代码 · 共 28 行

M
28
字号
%PREX_PLOTC  PRTools example on the dataset scatter and classifier plothelp prex_plotcn = prprogress;prprogress offecho 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 offprprogress(n);

⌨️ 快捷键说明

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