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

📄 plotgda.m

📁 通过核来泛化的判别分析(GDA)代码
💻 M
字号:
function PlotGDA(T,L,dataGDA,a,symb);

% plot the T test data (line vectors) into one, or two, discriminant axes.
% a is vector with one, or two elements, discribing the axes
% symb is a string for the plot format (see MatLab plot function for further details)
% L is the learning data (see BuildGDA & SpreadGDA)

% Gaston Baudat & Fatiha Anouar / 21st October 2000 / Exton PA 19341 USA
% Designed under MatLab for Windows version 5.2.0.3084


tmp=length(dataGDA.norAlpha(1,:));
if (length(a)>2)|(length(a)==0)
	fprintf('Axes selection error, must be one or two axes only\n')   
elseif length(a)==1
   if (a(1)>0)&(a(1)<=tmp)
      tmp=spreadGDA(T,L,dataGDA);
      plot(tmp(:,a(1)),symb);
   else
      fprintf('Axes selection error, invalid axis reference\n')
   end   
elseif ((a(1)>0)&(a(1)<=tmp))&((a(2)>0)&(a(2)<=tmp))
   tmp=spreadGDA(T,L,dataGDA);
   plot(tmp(:,a(1)),tmp(:,a(2)),symb);
else
         fprintf('Axes selection error, invalid axis reference\n')
end

⌨️ 快捷键说明

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